X-C1811/dsh-web-search-plugin ↗★ 2
dsh-web-search-plugin
Unified web search for the DeepSeek Harness seam (ctx.web): DeepSeek (official), Tavily, Brave, Serper, SerpApi, Exa, SearXNG, Scavio, and Firecrawl backends 适合需要灵活切换或配置不同网络搜索服务商的联网检索任务。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:X-C1811/dsh-web-search-pluginドキュメント
README 全文を読む ↗配置
设置卡编辑的是 dsh-web-search-plugin 命名空间:
| 键 | 默认值 | 含义 |
|---|---|---|
provider | deepseek-official | tavily、brave、deepseek-official、serper、serpapi、exa、searxng、scavio 或 firecrawl |
mode | keyless | 仅 Tavily:keyless 或 keyed |
apiKey | — | Tavily API key 字面量(走凭据域,不会回显) |
apiKeyEnv | TAVILY_API_KEY | keyed Tavily 使用的凭据/环境变量名 |
baseURL | https://api.tavily.com | Tavily REST 基址;会再拼 /search |
maxResults | 8 | 每次搜索返回的源数量,各后端共用。设置卡为 1–20 下拉,超出上限会夹到 20 |
searchDepth | basic | 仅 Tavily:basic 或 advanced |
includeAnswer | true | 仅 Tavily:请求生成摘要,写入结果 content |
topic | general | 仅 Tavily:general 或 news |
deepseekApiKey | — | DeepSeek API key 字面量(走凭据域) |
deepseekApiKeyEnv | DEEPSEEK_API_KEY | DeepSeek 使用的凭据/环境变量名 |
deepseekBaseURL | https://api.deepseek.com/anthropic/v1 | DeepSeek Anthropic 兼容 Messages 基址;再拼 /messages |
model | deepseek-v4-flash | Anthropic 格式模型名 |
apiVersion | 2023-06-01 | anthropic-version 请求头 |
maxTokens | 4096 | Messages 请求生成 token 上限 |
maxUses | 5 | 每次请求 web_search 工具的最大调用次数 |
braveApiKey | — | Brave 订阅 token 字面量(走凭据域) |
braveApiKeyEnv | BRAVE_API_KEY | Brave 使用的凭据/环境变量名 |
braveBaseURL | https://api.search.brave.com/res/v1/web/search | Brave 网页搜索接口 |
country | — | Brave 的 country(ISO 两位码,如 cn);留空使用 Brave 默认 |
searchLang | — | Brave 的 search_lang(如 zh-hans);留空使用 Brave 默认 |
freshness | — | Brave 的 freshness:pd / pw / pm / py |
proxy | — | Brave 使用的 HTTP(S) 代理覆盖;留空继承 DSH 的全局 HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY 策略 |
serperApiKey / serperApiKeyEnv / serperBaseURL | — / SERPER_API_KEY / — | Serper 的 key 字面量 / 凭据引用名 / 端点覆盖 |
serpapiApiKey / serpapiApiKeyEnv / serpapiBaseURL | — / SERPAPI_API_KEY / — | SerpApi 的 key 字面量 / 凭据引用名 / 端点覆盖 |
exaApiKey / exaApiKeyEnv / exaBaseURL | — / EXA_API_KEY / — | Exa 的 key 字面量 / 凭据引用名 / 端点覆盖 |
searxngBaseURL | — | SearXNG 自托管实例基址;留空用 https://searx.be |
scavioApiKey / scavioApiKeyEnv / scavioBaseURL | — / SCAVIO_API_KEY / — | Scavio 的 key 字面量 / 凭据引用名 / 端点覆盖 |
firecrawlApiKey / firecrawlApiKeyEnv / firecrawlBaseURL | — / FIRECRAWL_API_KEY / — | Firecrawl 的 key 字面量 / 凭据引用名 / 端点覆盖 |