CeilCelia/dsh-travily-api ↗★ 0
dsh-travily-api
Tavily web search for DeepSeek Harness: a settings switch back to the platform search provider, the API key held as a credential, and a connection test. 适合希望在DSH中使用Tavily网页搜索,并可切回平台默认搜索的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CeilCelia/dsh-travily-apiREADME
Read the full README ↗配置
重启后回到「插件」面板,在「已安装」中打开「Tavily 网页搜索」,页面中即为该插件的设置项:
- 在 tavily.com 申请 API Key 并填入。留空则使用 Tavily 的无 Key 模式。
- 启用「使用 Tavily 进行网页搜索」。
- 修改后点击保存,可用「连通测试」验证:该操作会真实发起一次搜索。
| 开关 | API Key | web_search 的提供方 |
|---|---|---|
| 关(默认) | — | 平台自带的搜索 |
| 开 | 未填 | Tavily,无 Key 模式 |
| 开 | 已填 | Tavily,计入账号额度 |
禁用时请求会原样转交给平台上已有的搜索提供方,因此安装本身不改变现有行为。开关与 API Key 的修改保存后立即生效,无需重启。
配置项
设置页写入 profile patch 中的 web-search-tavily 行。也可以直接编辑该行:
- id: web-search-tavily
config:
enabled: true
maxResults: 8
| 字段 | 默认值 | 说明 |
|---|---|---|
enabled | false | 是否通过 Tavily 执行搜索;关闭时回退到平台搜索 |
apiKeyEnv | TAVILY_API_KEY | 读取 API Key 的凭证引用名 |
baseURL | https://api.tavily.com | Tavily 接口地址 |
allowCustomBaseURL | false | 是否允许使用非官方接口地址 |
maxResults | 5 | 请求未指定时返回的结果数 |
searchDepth | basic | basic 或 advanced |
searchTimeoutMs | 30000 | 单次请求超时(毫秒) |