Bundle
bing-web-search
DSH(DeepSeek Harness)网页搜索插件:注册 tavily-bing provider,有 TAVILY_API_KEY 走 Tavily,没有就自动退回免费无 key 的 Bing,搜索永远可用
- Source
- h-k-c
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 5 days ago
Readme
<h1 align="center">bing-web-search</h1>
<p align="center">
DeepSeek Harness 网页搜索插件:有 <b>TAVILY_API_KEY</b> 走 Tavily,
<br/>
没有就<b>自动退回免费无 key 的 Bing</b> —— 搜索永远可用,<b>零配置</b>起步。
</p>
<p align="center">
<img src="https://img.shields.io/badge/license-MIT-34D399?style=flat" alt="MIT"/>
<img src="https://img.shields.io/badge/node-%3E%3D18-9CA3AF?style=flat" alt="Node >= 18"/>
</p>
---
## 安装
1. 把本目录拷到 DSH profile 的 `node_modules` 下(如 `~/.dsh/profiles/web/node_modules/bing-web-search/`)。
2. 在 profile 的 `cordis.patch.yml` 中插入:
```yaml
- insert:
- id: bing-web-search
name: bing-web-search
```
并在同文件里把搜索源指过来(web 插件的 `searchProvider` 配置):
```yaml
- id: web
name: '@deepseek-ai/dsh-web'
config:
searchProvider: tavily-bing
```
3. 重启 DSH 进程。
## 配置 Token(可选)
不配也能用(自动走 Bing 免费搜索);想让结果更准、带摘要答案,配一个 Tavily key:
```bash
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](LICENSE) · [Changelog](CHANGELOG.md)
Install
dsh plugin --profile web add github:h-k-c/bing-web-search
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install bing-web-search from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.