h-k-c
bing-web-search
DeepSeek Harness 网页搜索插件:有 Tavily key 走 Tavily,没有自动退回免费无 key 的 Bing,搜索永远可用(零配置起步)
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 15, 2026
- Updated
- Aug 15, 2026
Introduction
bing-web-search
DeepSeek Harness 网页搜索插件:有 TAVILY_API_KEY 走 Tavily,
没有就自动退回免费无 key 的 Bing —— 搜索永远可用,零配置起步。
安装
-
把本目录拷到 DSH profile 的
node_modules下(如~/.dsh/profiles/web/node_modules/bing-web-search/)。 -
在 profile 的
cordis.patch.yml中插入:- insert: - id: bing-web-search name: bing-web-search并在同文件里把搜索源指过来(web 插件的
searchProvider配置):- id: web name: '@deepseek-ai/dsh-web' config: searchProvider: tavily-bing -
重启 DSH 进程。
配置 Token(可选)
不配也能用(自动走 Bing 免费搜索);想让结果更准、带摘要答案,配一个 Tavily key:
export TAVILY_API_KEY=xxx
也可以写进 ~/.dsh/.credentials.yaml(键名 TAVILY_API_KEY),效果一样。
可选配置
| 环境变量 | 默认 | 说明 |
|---|---|---|
SEARCH_MAX_RESULTS | 8 | 每次返回的条数(1–10) |
SEARCH_TAVILY_TIMEOUT_MS | 15000 | Tavily 请求超时(毫秒) |
SEARCH_BING_TIMEOUT_MS | 20000 | Bing 请求超时(毫秒) |
也可以写在插件 config 里(maxResults / tavilyTimeoutMs / bingTimeoutMs),环境变量优先。