Back to home

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 —— 搜索永远可用,零配置起步。

MIT Node >= 18


安装

  1. 把本目录拷到 DSH profile 的 node_modules 下(如 ~/.dsh/profiles/web/node_modules/bing-web-search/)。

  2. 在 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
    
  3. 重启 DSH 进程。

配置 Token(可选)

不配也能用(自动走 Bing 免费搜索);想让结果更准、带摘要答案,配一个 Tavily key:

export TAVILY_API_KEY=xxx

也可以写进 ~/.dsh/.credentials.yaml(键名 TAVILY_API_KEY),效果一样。

可选配置

环境变量默认说明
SEARCH_MAX_RESULTS8每次返回的条数(1–10)
SEARCH_TAVILY_TIMEOUT_MS15000Tavily 请求超时(毫秒)
SEARCH_BING_TIMEOUT_MS20000Bing 请求超时(毫秒)

也可以写在插件 config 里(maxResults / tavilyTimeoutMs / bingTimeoutMs),环境变量优先。

License

MIT · Changelog