前言¶
DeepSeek Harness(DSH)的插件生態強調「一切皆插件」,社區目錄是獨立站點,與 DeepSeek / 幻方無官方從屬關係。對 DSH 使用者來說,聯網搜索不一定只能走 DSH 內置的 web_search 工具鏈路。dsh-web-search-provider 提供另一種路徑:使用模型提供方的服務端搜索能力。
這是什麼¶
dsh-web-search-provider 由 hiyms 維護,採用 MIT 許可證。它爲 DeepSeek Harness 提供基於模型提供方服務端搜索能力的聯網搜索支持。
使用它需要滿足以下條件:
- 模型提供方使用
OpenAI Responses API或Anthropic-compatible Messages API - 提供方本身提供
web search capability
它不通過 DSH 內置的 web_search 工具實現,因此可以與其他 web search provider 插件同時使用。在 OpenAI Responses API 下,它還能直接查看或搜索 URL 頁面內容。
安裝與啓用¶
先安裝插件:
dsh plugin add dsh-web-search-provider
如果從源碼安裝,可以執行:
pnpm install
然後在 cordis.yml overlay 中引用插件:
- insert:
- id: web-search-provider
name: 'dsh-web-search-provider'
config:
enabled: true
probe: true
上面配置先啓用插件,並打開 probe。
配置¶
配置節爲 web-search-provider。可設置以下項:
enabled:啓用或禁用插件能力providers:提供方白名單baseURL:端點覆蓋model:模型覆蓋apiKeyEnv:API key 覆蓋includeSources、stripServerTools、idleTimeoutMs、probe、probeTimeoutMs:請求、超時和探測相關配置
典型用法¶
下面介紹幾個使用前需要確認的點。
- 建議優先使用
OpenAI Responses API提供方,因爲它額外支持查看或搜索 URL 頁面內容。 - 如果提供方使用
Response API/Message API,但不提供web search capability,會話首次使用可能報錯;DSH 會在沒有該插件能力的情況下繼續工作。 - 當模型使用此插件的 web search 能力時,可能沒有可見的 search-call UI,也可能表現爲連續 thinking 段。
- 部分模型提供方可能對 web search 能力額外收費,使用前確認計費方式。
- DSH 內置
OpenCode Goprovider 對不同模型使用不同 API 類型;若要使用該插件能力,可能需手動添加Response/MessageAPI 類型的自定義 provider。
安全與檢查¶
該插件以當前 dsh 進程權限運行。安裝前建議檢查源碼與 MIT 許可證,確認其讀取的配置、憑據和發送請求的範圍符合預期。
鏈接¶
- GitHub:https://github.com/hiyms/dsh-web-search-provider
- 社區目錄:未在本篇附確定 URL,可按插件名
dsh-web-search-provider在 DSH 插件目錄中查找。