发布配置中心运行数据 131

Source-Commit: d77e4a27ac
Payload-SHA256: e7abe73a4c9477047dc4a087ed981d687bd3c70d8cb3ae76b626784f8dcae141
This commit is contained in:
2026-10-13 11:37:59 +00:00
commit d873384ddd
84 changed files with 50835 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"description": "image_understanding 工具后端加载顺序索引",
"order": ["configured-vision-openai", "configured-vision-anthropic"]
}

View File

@@ -0,0 +1,32 @@
{
"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.0.text" },
"timeoutMs": 30000
}

View File

@@ -0,0 +1,30 @@
{
"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
}