mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-12-05 13:00:13 +08:00
Source-Commit: d77e4a27ac
Payload-SHA256: e7abe73a4c9477047dc4a087ed981d687bd3c70d8cb3ae76b626784f8dcae141
31 lines
793 B
JSON
31 lines
793 B
JSON
{
|
|
"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
|
|
}
|