mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-10-21 06:04:08 +08:00
发布配置中心运行数据 131
Source-Commit: d77e4a27ac
Payload-SHA256: e7abe73a4c9477047dc4a087ed981d687bd3c70d8cb3ae76b626784f8dcae141
This commit is contained in:
4
api-providers/web-search/_index.json
Normal file
4
api-providers/web-search/_index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"description": "web_search 工具后端加载顺序索引",
|
||||
"order": ["tavily", "brave", "serper", "doubao-search-global"]
|
||||
}
|
||||
35
api-providers/web-search/brave.json
Normal file
35
api-providers/web-search/brave.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"id": "brave",
|
||||
"name": "Brave Search API",
|
||||
"capability": "web_search",
|
||||
"enabled": false,
|
||||
"builtin": true,
|
||||
"priority": 20,
|
||||
"endpoint": "https://api.search.brave.com/res/v1/web/search",
|
||||
"method": "GET",
|
||||
"auth": {
|
||||
"type": "header",
|
||||
"headerName": "X-Subscription-Token",
|
||||
"apiKeyRef": "brave"
|
||||
},
|
||||
"request": {
|
||||
"headers": {
|
||||
"Accept": "application/json",
|
||||
"Accept-Encoding": "gzip"
|
||||
},
|
||||
"queryParams": {
|
||||
"q": "${query}",
|
||||
"count": "${maxResults}"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"resultsPath": "web.results",
|
||||
"item": {
|
||||
"titlePath": "title",
|
||||
"urlPath": "url",
|
||||
"snippetPath": "description",
|
||||
"pageAgePath": "page_age"
|
||||
}
|
||||
},
|
||||
"timeoutMs": 10000
|
||||
}
|
||||
36
api-providers/web-search/doubao-search-global.json
Normal file
36
api-providers/web-search/doubao-search-global.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"id": "doubao-search-global",
|
||||
"name": "豆包搜索 Global",
|
||||
"capability": "web_search",
|
||||
"enabled": false,
|
||||
"builtin": true,
|
||||
"priority": 5,
|
||||
"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
|
||||
}
|
||||
19
api-providers/web-search/serper.json
Normal file
19
api-providers/web-search/serper.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"id": "serper",
|
||||
"name": "Serper",
|
||||
"capability": "web_search",
|
||||
"enabled": false,
|
||||
"builtin": true,
|
||||
"priority": 30,
|
||||
"endpoint": "https://google.serper.dev/search",
|
||||
"method": "POST",
|
||||
"auth": { "type": "header", "headerName": "X-API-KEY", "apiKeyRef": "serper" },
|
||||
"request": {
|
||||
"bodyTemplate": { "q": "${query}", "num": "${maxResults}" }
|
||||
},
|
||||
"response": {
|
||||
"resultsPath": "organic",
|
||||
"item": { "titlePath": "title", "urlPath": "link", "snippetPath": "snippet" }
|
||||
},
|
||||
"timeoutMs": 10000
|
||||
}
|
||||
23
api-providers/web-search/tavily.json
Normal file
23
api-providers/web-search/tavily.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"id": "tavily",
|
||||
"name": "Tavily",
|
||||
"capability": "web_search",
|
||||
"enabled": false,
|
||||
"builtin": true,
|
||||
"priority": 10,
|
||||
"endpoint": "https://api.tavily.com/search",
|
||||
"method": "POST",
|
||||
"auth": { "type": "bearer", "apiKeyRef": "tavily" },
|
||||
"request": {
|
||||
"bodyTemplate": {
|
||||
"query": "${query}",
|
||||
"max_results": "${maxResults}",
|
||||
"search_depth": "basic"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"resultsPath": "results",
|
||||
"item": { "titlePath": "title", "urlPath": "url", "snippetPath": "content" }
|
||||
},
|
||||
"timeoutMs": 10000
|
||||
}
|
||||
Reference in New Issue
Block a user