Mục lục
Run a typed evaluation
Jev đánh giá trạng thái JSON theo các câu hỏi có tên và trả về câu trả lời có kiểu boolean, choice hoặc score. Gọi POST /v1/evaluations bằng xác thực Bearer; cửa sổ ngữ cảnh của mô hình là 32K tokens. Tìm Jev bằng /v1/models?output_modalities=decisions hoặc /v1/models?output_modalities=all; danh sách chỉ gồm mô hình văn bản mặc định không bao gồm mô hình chỉ xuất decisions. Jev chỉ dùng qua evaluations endpoint; endpoint dạng chat trả về HTTP 400. Giá niêm yết hiện tại là $0.042 cho mỗi 1M tokens đầu vào và $0 cho mỗi 1M tokens đầu ra. Tài khoản cần có đủ credits.
/v1/evaluationsXác thực
Authorizationbắt buộcAPI key dưới dạng bearer token trong 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"statebắt buộcThe state or evidence to evaluate. It may be a string, object, or array.
"The support agent issued a full refund."questionsbắt buộcOne or more named questions evaluated in parallel.
typebắt buộcThe typed answer requested for this question.
instructionsbắt buộcInstructions 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.