Files
config-center/api-providers/image-understanding/configured-vision-anthropic.json
T
yige 4e15bef285 发布配置中心运行数据 137
Source-Commit: c87e5521a4
Payload-SHA256: cf7404c111e74c272365ca4eaabc79fac6a3c617b83ea434768f0979603b3c7d
2026-11-03 09:49:55 +00:00

33 lines
957 B
JSON

{
"id": "configured-vision-anthropic",
"name": "视觉模型(Anthropic 兼容,复用默认映射)",
"capability": "image_understanding",
"enabled": true,
"builtin": true,
"priority": 20,
"endpoint": "${baseUrl}/messages",
"method": "POST",
"computeServiceType": "vision",
"requiresApiFormat": "anthropic-messages",
"auth": { "type": "header", "headerName": "x-api-key" },
"request": {
"imageMode": "base64",
"headers": { "anthropic-version": "2023-06-01" },
"bodyTemplate": {
"model": "${model}",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{ "type": "image", "source": { "type": "base64", "media_type": "${imageMime}", "data": "${imageBase64}" } },
{ "type": "text", "text": "${prompt}" }
]
}
]
}
},
"response": { "textPath": "content", "textFormat": "text-blocks" },
"timeoutMs": 30000
}