Responses 格式
OpenAI Responses API 兼容接口,支持单轮/多轮输入、工具调用和推理参数。
typesafe/jev 通过此地址提交 Jev 的 model + input.state + input.questions 请求。
Jev 使用自己的结构化评估协议,成功响应为 model、answers、usage,不采用 OpenAI Responses 的 output 格式。
Jev 调用使用 fluxmodel.ai API Key;可用性取决于令牌分组及管理员的模型路由配置。以下 Jev 示例采用非流式 JSON,错误响应仍由平台统一处理。
详见 Jev 接入指南 和 Cloudflare Jev 文档。
Authorization
bearerAuth 使用 Authorization Bearer API Key 进行鉴权。
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/responses" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5.4-nano", "input": "你好" }'仅为结构示例;答案、用量和实际模型版本以每次响应为准。
{
"model": "jev-1.13.0",
"answers": {
"urgent": {
"type": "noul",
"noul": 0.96
},
"department": {
"type": "choice",
"choice": "billing",
"confidence": 0.94,
"probabilities": {
"billing": 0.97,
"technical": 0.03,
"sales": 0
}
},
"frustration": {
"type": "score",
"score": 1.1,
"confidence": 0.9,
"legend": {
"0": "平静",
"1": "不满",
"2": "强烈不满"
},
"probabilities": {
"0": 0,
"1": 0.9,
"2": 0.1
}
}
},
"usage": {
"input_tokens": 420,
"output_tokens": 75
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}