bing-web-search
Agent 与会话 活跃维护

bing-web-search

h-k-c/bing-web-search

轻量级网页搜索插件,配置Tavily密钥时调用对应接口,无密钥则自动切换至免费无密钥的Bing搜索,零配置即可稳定获取网页搜索结果,使用门槛极低。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
12 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:h-k-c/bing-web-search
git clone https://github.com/h-k-c/bing-web-search.git
git clone git@github.com:h-k-c/bing-web-search.git
README.md main

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_RESULTS 8 每次返回的条数(1–10)
SEARCH_TAVILY_TIMEOUT_MS 15000 Tavily 请求超时(毫秒)
SEARCH_BING_TIMEOUT_MS 20000 Bing 请求超时(毫秒)

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

License

MIT · Changelog