TypeSafe: Jev

Decisions
typesafe/jev-latest

Jev. 支持真假判断、选项选择和等级评分。下方三种 API 格式都可以调用 Jev。 Jev 支持文本、JSON 对象和文本数组,不支持图片。Decisions 为同步调用。

上下文窗口
64K
发布日期
2026-09-23
能力
判断
可用供应商
TypeSafe
支持的协议
openai

供应商

TypeSafeprovider.type: "typesafe"
输入 Token
$0.042/M
输出 Token
$0/M
接入协议
openai/openai/v1/decisions/typesafe/v1/systemone/v1/decisions

使用文档

Jev 判断(Decisions)使用指南:从首次调用到上线后低置信度结果的处理。

代码示例

import json
import os
import urllib.request
body = json.loads('''{
"model": "typesafe/jev-latest",
"input": "I was charged twice. Please refund me today.",
"questions": [
{
"type": "predicate",
"name": "urgent",
"instructions": "Is this urgent?"
},
{
"type": "choice",
"name": "department",
"instructions": "Which team should handle this?",
"choices": [
{
"value": "billing",
"description": "Payments and refunds"
},
{
"value": "technical",
"description": "Bugs and outages"
},
{
"value": "other",
"description": "None of the above"
}
]
},
{
"type": "score",
"name": "severity",
"instructions": "How severe is this issue?",
"levels": [
{
"label": "Minor"
},
{
"label": "Workaround available"
},
{
"label": "Fully blocked"
}
]
}
]
}''')
request = urllib.request.Request("https://api.ofox.ai/v1/decisions", data=json.dumps(body).encode(), headers={
"Authorization": "Bearer " + os.environ["OFOXAI_API_KEY"],
"Content-Type": "application/json",
})
with urllib.request.urlopen(request) as response:
print(json.load(response)["answers"])

常见问题

TypeSafe: Jev 在 Ofox.ai 上的价格为输入 $0.042/百万 Token,输出 $0/百万 Token。按量计费,无月费。