基础信息
- 接口域名:
https://mm-internal-cn.leonecloud.com - API Key:在控制台创建,需开通「大模型」能力并确保账户余额充足。
- 模型 ID、上下文长度和输出上限:以控制台「模型广场」为准。
示例中的 <API_KEY> 需替换为自己的 LeoneCloud API Key。修改已有配置时合并对应字段,保留其他配置。
jev 使用独立的 systemone 接口,请求包含待分析内容 state 和问题集合 questions,不使用 Chat Completions 的 messages 格式。
- 请求地址:
POST https://mm-internal-cn.leonecloud.com/v1/systemone - 鉴权:
Authorization: Bearer <API_KEY> - Content-Type:
application/json - 模型:
jev-latest,调用前确认账户已开通对应模型。
调用示例
curl -X POST "https://mm-internal-cn.leonecloud.com/v1/systemone" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d @- <<'EOF'
{
"state": "Hi, I've been trying to connect my Stripe account for 3 days and the integration keeps failing. I'm losing sales. Please help ASAP.",
"model": "jev-latest",
"questions": {
"urgency": {
"type": "noul",
"instructions": "Does this message express urgency?"
}
}
}
EOF响应示例
{
"model": "jev-1.13.0",
"answers": {
"urgency": {
"type": "noul",
"noul": 0.98
}
},
"usage": {
"input_tokens": 302,
"output_tokens": 21
}
}answers 中的键对应请求中的问题名。上面的数值及解析后的模型版本仅用于演示,实际以接口响应为准。