Jev 智能路由
Jev 不是聊天模型,它只做一件事:帮你做判断。
你给它一段情况描述,再问几个问题,它直接返回结构化的答案和概率 —— 不用写 prompt、不用解析一大段文字。拿到答案后,你的程序就知道这条请求该交给谁、走哪条流程。
适合做什么
- 分流:这条工单是退款、改签还是咨询?
- 判断:客户是不是很着急?
- 打分:客户有多不满?
三种问题
| 类型 | 问法 | 返回 |
|---|---|---|
noul | 是不是? | noul:是的概率(0–1) |
choice | 选哪个? | choice:选中项 + 各项概率 |
score | 几分? | score:分数(可以落在两档之间)+ 各档概率 |
choice 和 score 还会给出 confidence(把握有多大),把握低的可以转人工。
第一步:创建 Jev Key
Jev 需要专门开启的 Key:在控制台 API 密钥 页面点 创建 Jev Smart API Key。已有的 Key 也可以在编辑时打开 Jev 开关。列表里带 Jev 标记的就是。
普通 Key 调用 Jev 会返回 403 jev_key_required。
第二步:调用
bash
curl https://www.routerbus.com/v1/systemone \
-H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "jev-latest",
"state": "我三天前订的机票被取消了,钱到现在还没退,明天就要出发!",
"questions": {
"is_urgent": {
"type": "noul",
"instructions": "客户是否很着急?"
},
"request_type": {
"type": "choice",
"instructions": "客户的主要诉求是什么?",
"criteria": {
"refund": "要求退款",
"rebooking": "要求改签或换票",
"information": "只是咨询信息"
}
},
"frustration": {
"type": "score",
"instructions": "客户有多不满?",
"criteria": ["平静", "有些担心", "非常生气"]
}
}
}'state:要判断的情况,一段文字questions:你起名字的问题,名字会原样出现在答案里
返回结果
json
{
"answers": {
"is_urgent": { "noul": 0.93 },
"request_type": {
"choice": "refund",
"probabilities": { "refund": 0.85, "rebooking": 0.10, "information": 0.05 },
"confidence": 0.78
},
"frustration": {
"score": 1.6,
"probabilities": { "0": 0.10, "1": 0.20, "2": 0.70 },
"confidence": 0.65
}
}
}(数值为示意。)程序里读 answers.request_type.choice 就能决定下一步:退款交给财务,着急的排到前面。
计费
按 token 计费,和其他调用一样从余额扣除,记录在 使用日志 里。Jev 请求始终按 Jev 自己的价格结算,不受 Key 所在分组影响。