跳到正文

crayonlu/dsh-web-search-tavily

30最近提交 2026年8月13日

dsh-web-search-tavily DSH 插件

该插件为 DeepSeek Harness 提供了使用 Tavily 搜索 API 的 WebSearchProvider。它让 `web_search` 工具完全运行在 Tavily 上,无需 DeepSeek API 密钥。通过 `dsh plugin` 命令安装,并在配置文件的热加载层中添加配置。

如何安装 dsh-web-search-tavily DSH 插件

dsh plugin --profile web add github:crayonlu/dsh-web-search-tavily

复制不会执行命令。安装 dsh-web-search-tavily DSH 插件前请核对仓库和版本。

dsh-web-search-tavily DSH 插件数据来源

dsh-web-search-tavily DSH 插件快照日期:2026年8月16日

discovered

dsh-web-search-tavily DSH 插件能做什么

  • 支持 Tavily 的搜索深度(basic 或 advanced)和 maxResults 参数。
  • 可通过直接值或环境变量引用配置 API 密钥。
  • 启用 includeAnswer 时,将 Tavily 生成的答案作为搜索结果内容。
  • 支持自定义 Tavily API 端点的基础 URL。
  • 配置更改后热加载,无需重启 DSH 进程。

dsh-web-search-tavily DSH 插件适合哪些场景

  • 替换 DeepSeek 内置搜索,使用 Tavily 获取更灵活或更高质量的搜索结果。
  • 在 DSH 工作流中通过 Tavily 进行实时网页搜索。
  • 与依赖 `web_search` 工具的其他 DSH 插件集成。
  • 避免暴露 DeepSeek API 密钥,改用 Tavily 作为搜索后端。

dsh-web-search-tavily DSH 插件适合谁

  • 需要使用 Tavily 搜索的 DeepSeek Harness 用户。
  • 构建需要网页搜索但不想使用 DeepSeek API 的 DSH 工作流的开发者。

dsh-web-search-tavily DSH 插件的限制

  • 需要有效的 Tavily API 密钥(通过 `apiKey` 或 `apiKeyEnv` 配置)。
  • 仅支持 Tavily 作为搜索提供者,不支持其他搜索引擎。
  • `apiKey` 字段会以明文形式存储在配置文件中。
  • 依赖 Tavily 服务的可用性,如果 Tavily 宕机则无法使用。

dsh-web-search-tavily DSH 插件的仓库 README 摘录

以下文字摘自 dsh-web-search-tavily DSH 插件的上游仓库 crayonlu/dsh-web-search-tavily 的 README,版权归原作者,仅作引用。

Tavily-backed `WebSearchProvider` for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) web capability seam (`ctx.web`). Lets `dsh`'s `web_search` tool run entirely on [Tavily](https://tavily.com) — no DeepSeek API key required. ## Install ```sh dsh plugin --profile web add github:crayonlu/dsh-web-search-tavily ``` Then add the provider to the profile patch layer at `$DSH_HOME/profiles/web/cordis.patch.yml` (hot-reloaded — no restart needed): ```yaml - insert: - id: web-search-tavily name: '@crayonlu/dsh-web-search-tavily' - id: web config: searchProvider: tavily # Optional: drop the DeepSeek-backed search (and chat route) entirely. - id: web-search-deepseek disabled: true - id: llm-deepseek disabled: true ``` ## Configuration Every field is optional: | Field | Default | Meaning | |---|---|---| | `apiKey` | — | Literal Tavily key (write it here instead of `apiKeyEnv` only if you must; it lands in a config file). | | `apiKeyEnv` | `TAVILY_API_KEY` | Credential reference resolved per search through `ctx.credentials` (inherited env > `$DSH_HOME/.credentials.yaml` > project/user `.env`). | | `baseURL` | `https://api.tavily.com` | Endpoint ba

阅读完整 README仓库许可: MIT

dsh-web-search-tavily DSH 插件常见问题

如何安装这个插件?

在终端运行命令 `dsh plugin --profile web add github:crayonlu/dsh-web-search-tavily`。然后按照 README 的描述,将提供者配置添加到 `$DSH_HOME/profiles/web/cordis.patch.yml` 文件中。由于热加载机制,无需重启 DSH 进程。

如何配置 Tavily API 密钥?

你可以在插件配置的 `apiKey` 字段中直接写入密钥,或者通过 `apiKeyEnv` 字段指定环境变量名称(默认 `TAVILY_API_KEY`)。推荐使用环境变量方式,避免密钥明文存储在配置文件中。

是否可以不使用 DeepSeek API 密钥?

可以,这正是该插件的主要用途。它让所有搜索请求都通过 Tavily,因此只需 Tavily API 密钥。你还可以在补丁文件中将 DeepSeek 搜索和聊天路由的 `disabled` 设置为 `true` 来完全禁用它们。

如何测试插件是否正常工作?

运行 `npm install && npm test` 执行单元测试。如果设置了 `TAVILY_API_KEY` 环境变量,还会有一个烟雾测试执行真实的 Tavily 搜索。确保你已正确配置了插件。

有哪些可配置的选项?

插件支持 `apiKey`、`apiKeyEnv`、`baseURL`、`maxResults`、`includeAnswer` 和 `searchDepth` 字段,所有字段都是可选的。默认值:`apiKeyEnv` 为 `TAVILY_API_KEY`,`baseURL` 为 `https://api.tavily.com`,`maxResults` 为 5,`includeAnswer` 为 true,`searchDepth` 为 `basic`。