章節導覽
Run a typed evaluation
Jev 會評估 JSON state 與具名 questions,並回傳 boolean、choice 或 score 型別答案。使用 Bearer 驗證呼叫 POST /v1/evaluations;Jev 的 context window 為 32K tokens。透過 /v1/models?output_modalities=decisions 或 /v1/models?output_modalities=all 查詢 Jev;預設文字模型清單不會列出僅輸出 decisions 的模型。Jev 僅能透過 evaluations endpoint 使用;以聊天格式端點呼叫會收到 HTTP 400。目前目錄單價:每 1M 輸入 tokens $0.042、每 1M 輸出 tokens $0。帳戶需有足夠 credits。
/v1/evaluations驗證
Authorization必填在 Authorization 標頭以 Bearer token 傳入 API 金鑰。
Body
modelThe optional evaluation model in the request body. Omit it to use the default typesafe-ai/jev; any other value is rejected as model_not_available.
"typesafe-ai/jev"state必填The state or evidence to evaluate. It may be a string, object, or array.
"The support agent issued a full refund."questions必填One or more named questions evaluated in parallel.
type必填The typed answer requested for this question.
instructions必填Instructions describing what this question should decide.
criteriaRequired for choice questions as an option-to-description record; required for score questions as an ordered array of at least two criteria; optional for boolean questions.