Jev. 支援真假判斷、選項選擇和等級評分。下方三種 API 格式都可以呼叫 Jev。 Jev 支援文字、JSON 物件和文字陣列,不支援圖片。Decisions 為同步呼叫。
上下文視窗
64K
發布日期
2026-09-23
能力
判斷
可用供應商
TypeSafe
支援的協定
openai
供應商
TypeSafe
provider.type: "typesafe"輸入 Token
$0.042/M
輸出 Token
$0/M
接入協定
openai
/openai/v1/decisions/typesafe/v1/systemone/v1/decisions使用文件
Jev 判斷(Decisions)使用指南:從首次呼叫到上線後低置信度結果的處理。
程式碼範例
import jsonimport osimport urllib.requestbody = 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。按量計費,無月費。
直接傳送 HTTP 請求:input + questions 陣列,答案也以陣列回傳。
OpenAI SDK:服務位址設為 https://api.ofox.ai/openai/v1,使用 input + questions 陣列,答案以陣列回傳。
TypeSafe SDK:服務位址設為 https://api.ofox.ai/typesafe,使用 state + questions 對應表,答案以同名鍵回傳。
支援真假判斷、選項選擇和等級評分。選擇下方任一格式,皆可呼叫這兩個判斷模型。
Jev 支援文字、JSON 物件和文字陣列,不支援圖片。Decisions 為同步呼叫。
TypeSafe: Jev 支援以下能力:判斷。透過 Ofox.ai 統一 API 存取所有功能。