mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-07-23 05:14:46 +08:00
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>
This commit is contained in:
20
api-providers/web-search/minimax.json
Normal file
20
api-providers/web-search/minimax.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"id": "minimax",
|
||||
"name": "MiniMax 搜索(内测网关)",
|
||||
"capability": "web_search",
|
||||
"enabled": false,
|
||||
"builtin": true,
|
||||
"priority": 30,
|
||||
"endpoint": "${baseUrl}/web_search",
|
||||
"method": "POST",
|
||||
"baseUrlRef": "internal-testing",
|
||||
"auth": { "type": "bearer" },
|
||||
"request": {
|
||||
"bodyTemplate": { "query": "${query}", "num_results": "${maxResults}" }
|
||||
},
|
||||
"response": {
|
||||
"resultsPath": "results",
|
||||
"item": { "titlePath": "title", "urlPath": "url", "snippetPath": "content" }
|
||||
},
|
||||
"timeoutMs": 10000
|
||||
}
|
||||
Reference in New Issue
Block a user