Files
config-center/api-providers/image-understanding/configured-vision-openai.json
Yige ef632d4e6a feat(api-providers): 新增 web_search / image_understanding 声明式后端默认配置 (#31)
- api-providers/{web-search,image-understanding}/*.json + _index.json
- 新增 schemas/api-provider.schema.json,validate.mjs 纳入校验(CI 自检)
- 不改 compute/ 与 manifest,presetDataVersion 不变:老客户端忽略新目录,线上不受影响

Co-authored-by: yi-ge <jackyoncode@gmail.com>
2026-06-09 09:54:27 +08:00

31 lines
793 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"id": "configured-vision-openai",
"name": "视觉模型OpenAI 兼容,复用默认映射)",
"capability": "image_understanding",
"enabled": true,
"builtin": true,
"priority": 10,
"endpoint": "${baseUrl}/chat/completions",
"method": "POST",
"computeServiceType": "vision",
"requiresApiFormat": "openai-completions",
"auth": { "type": "bearer" },
"request": {
"imageMode": "url",
"bodyTemplate": {
"model": "${model}",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "${prompt}" },
{ "type": "image_url", "image_url": { "url": "${imageUrl}" } }
]
}
]
}
},
"response": { "textPath": "choices.0.message.content" },
"timeoutMs": 30000
}