feat: add Doubao Global web search provider (#92)

This commit is contained in:
Johnson-LYS
2026-09-01 16:27:58 +08:00
committed by GitHub
parent e7848667b6
commit 3b26ea627d
5 changed files with 87 additions and 6 deletions

View File

@@ -0,0 +1,36 @@
{
"id": "doubao-search-global",
"name": "豆包搜索 Global",
"capability": "web_search",
"enabled": false,
"builtin": true,
"priority": 40,
"endpoint": "https://open.feedcoopapi.com/search_api/global_search",
"method": "POST",
"auth": {
"type": "bearer",
"apiKeyRef": "doubao-search-global"
},
"request": {
"bodyTemplate": {
"Query": "${query}",
"SearchType": "web",
"DocCount": "${maxResults}",
"MaxSnippetLength": 500
}
},
"response": {
"resultsPath": "Result.Documents",
"item": {
"titlePath": "Title",
"urlPath": "Url",
"snippetPath": "Snippet.0.Text",
"pageAgePath": "DocumentInfo.PublishTime"
},
"successCondition": {
"path": "Result.ErrorCode",
"equals": 0
}
},
"timeoutMs": 10000
}