yunxiyang/dsh-web-search-litellm0

dsh-web-search-litellm

Web search provider for the DeepSeek Harness ctx.web seam via the LiteLLM proxy OpenAI Responses API: DeepSeek's native server-side web_search through your proxy. Fixes web_search 'Authentication Fails, Your api key is invalid' (DEEPSEEK_API_KEY that is actually a proxy key); no Anthropic protocol, no third-party search service, reuses LITELLM_API_KEY.

包名
dsh-web-search-litellm
版本
0.1.1
许可证
MIT
最近更新
2026年8月31日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yunxiyang/dsh-web-search-litellm

何时使用 / When to use

Pick this provider when any of these is your situation:

  • web_search fails with Authentication Fails, Your api key: ****XXXX is invalid — usually because DEEPSEEK_API_KEY holds a LiteLLM proxy key, not a DeepSeek platform key.
  • All company traffic must go through LiteLLM (direct api.deepseek.com is blocked or forbidden).
  • You prefer the OpenAI Responses protocol over the Anthropic /messages format.
  • You want no free-tier / third-party search service (Tavily, Brave, Exa, …) — search stays on DeepSeek's official server side.
  • You use openai/deepseek-v4-flash or openai/deepseek-v4-pro through a LiteLLM proxy as your main model.

Configuration

Settings section web-search-litellm (harness Settings UI) or the bundle patch config:

keydefaultmeaning
baseURL$LITELLM_SEARCH_BASE_URLhttp://127.0.0.1:4000/v1LiteLLM proxy root; /responses is appended
modelopenai/deepseek-v4-flashmodel id routed through the proxy (must support server-side web_search)
apiKeyEnvLITELLM_API_KEYcredential reference resolved at each search
apiKeyoptional literal key (secret role)
maxTokens4096max_output_tokens for one search request
timeoutMs60000per-request timeout; times out as a structured WEB_TIMEOUT error

Known upstream limits (not configuration issues)

  • DeepSeek's Responses API documents include as not supported, so structured result items are consumed server-side; sources therefore carry url only (no title/snippet).
  • Each search costs one DeepSeek model turn (official mechanism).