dsh-web-search-responses
在终端中运行以下命令:
dsh plugin install herminger/dsh-web-search-responses
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在终端执行 dsh plugin install herminger/dsh-web-search-responses(源码地址 https://github.com/herminger/dsh-web-search-responses)即可将 responses-web 联网搜索提供者注册到 DeepSeek Harness。
插件介绍
DSH 的联网搜索默认走 Anthropic Messages 的 web_search 接口。如果你的模型端点走 OpenAI Responses 格式——例如 CPA、OpenAI 兼容网关——仅靠配置无法让搜索请求落到该端点,因为底层 provider 只认 Anthropic 兼容协议。
这个插件注册了一个名为 responses-web 的搜索提供者,直接向当前模型自身的 Responses 端点发出请求,借助其内置的 web_search 工具完成联网检索,并将返回的 web_search_call 条目与引用解析为标准 WebSearchResult。它默认自动跟随当前会话模型的 provider、model、baseURL 和密钥路径,也可在 cordis.patch.yml 中手动锁定路由,并支持 includeSources、searchContextSize、toolChoice、maxOutputTokens 等细粒度参数。
适合用 OpenAI Responses 格式端点运行 DSH、又希望联网搜索与对话共用同一条模型路由的开发者。装上之后无需改动 DSH 核心代码,联网搜索即可复用现有 Responses 路由。
使用场景
- 模型走 OpenAI Responses 格式,联网搜索无法复用同一端点
- 需为 DSH web 工具指定独立的搜索 API 路由
- 需要 includeSources、searchContextSize 等 Responses 搜索细粒度参数
适合人员
- 用 OpenAI 兼容网关运行 DSH 的开发者
- 需要为联网搜索定制 API 路由的 DSH 用户
- 使用 CPA 等 Responses 格式端点的团队