dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
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 进程。
不配也能用(自动走 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),环境变量优先。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。