crayonlu / dsh-web-search-tavily

已收录

Tavily-backed web search provider for DeepSeek Harness (ctx.web) — no DeepSeek API key required

main模型工具 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:crayonlu/dsh-web-search-tavily

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 99a0bfb同步于 2026年8月18日

@crayonlu/dsh-web-search-tavily

Tavily-backed WebSearchProvider for the DeepSeek Harness web capability seam (ctx.web). Lets dsh's web_search tool run entirely on Tavily — no DeepSeek API key required.

Install

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):

- 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:

FieldDefaultMeaning
apiKeyLiteral Tavily key (write it here instead of apiKeyEnv only if you must; it lands in a config file).
apiKeyEnvTAVILY_API_KEYCredential reference resolved per search through ctx.credentials (inherited env > $DSH_HOME/.credentials.yaml > project/user .env).
baseURLhttps://api.tavily.comEndpoint base; /search is appended.
maxResults5Default result count when a request carries no maxResults.
includeAnswertrueCarry Tavily's generated answer as the search result content.
searchDepthbasicbasic or advanced (Tavily's search_depth).

The key resolves once per search, so an empty TAVILY_API_KEY fails the request with WEB_MISSING_CREDENTIAL rather than falling through to an unrelated credential.

Tests

npm install
npm test

Unit tests mock the HTTP layer; the smoke test runs a real Tavily search when TAVILY_API_KEY is set.

License

MIT

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

测试已检测

仓库信息

开发语言
JavaScript
许可证
MIT
最后更新
2026年8月13日 14:42

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。