สารบัญ
Run a typed evaluation
Jev ประเมิน JSON state ตามคำถามที่ระบุชื่อ และส่งคำตอบชนิด boolean, choice หรือ score เรียก POST /v1/evaluations ด้วย Bearer authentication; context window ของโมเดลมีขนาด 32K tokens ค้นหา Jev ได้ด้วย /v1/models?output_modalities=decisions หรือ /v1/models?output_modalities=all โดยรายการโมเดลข้อความเริ่มต้นจะไม่รวมโมเดลที่ส่งออกเฉพาะ decisions Jev ใช้งานผ่าน evaluations endpoint เท่านั้น ส่วน endpoint รูปแบบแชตจะตอบกลับ HTTP 400 ราคาตามรายการปัจจุบันคือ $0.042 ต่อ 1M input tokens และ $0 ต่อ 1M output tokens บัญชีต้องมี credits เพียงพอ
/v1/evaluationsการอนุญาต
Authorizationจำเป็นAPI key เป็น bearer token ใน header Authorization
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.