WeKnora
Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yunxiyang/dsh-web-search-litellm
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH web_search provider over the LiteLLM proxy using the OpenAI Responses protocol. The request carries the server-side web_search tool, executed natively by the DeepSeek Responses API; the grounded answer and the real URLs the model opened are returned to the harness web seam (ctx.web).
POST {baseURL}/responses, not /messages.LITELLM_API_KEY credential your chat Models page already stores.web-search-litellm section).这是 DeepSeek Harness ctx.web 能力的联网搜索提供方:web_search 请求走 OpenAI Responses 协议发往你的 LiteLLM 代理,由 DeepSeek 官方 Responses API 在服务端原生执行搜索,返回带真实来源 URL 的答案。
LITELLM_API_KEY。dsh plugin --profile <name> add dsh-web-search-litellm,然后在 profile 的 cordis.patch.yml 里把 web 的 searchProvider 设为 litellm-responses(详见下方英文说明)。web_search 报 Authentication Fails, Your api key is invalid,且你的 DEEPSEEK_API_KEY 其实是 LiteLLM 代理 key——装这个插件并把 baseURL 指向代理即可。Pick this provider when any of these is your situation:
web_search fails with `Authentication Fails, Your api key: **XXXX is invalid** — usually becauseDEEPSEEK_API_KEY` holds a LiteLLM proxy key, not a DeepSeek platform key./messages format.openai/deepseek-v4-flash or openai/deepseek-v4-pro through a LiteLLM proxy as your main model.dsh plugin --profile <name> add dsh-web-search-litellm
# or from a local checkout:
dsh plugin --profile <name> add ./dsh-web-search-litellm
Then route the seam (profile cordis.patch.yml):
- id: web
config:
searchProvider: litellm-responses
# optional: disable the shipped Anthropic-format DeepSeek provider
- id: web-search-deepseek
disabled: true
Restart the profile (desktop: Settings → Desktop settings → Restart, or quit and reopen).
Settings section web-search-litellm (harness Settings UI) or the bundle patch config:
Every endpoint/model field is optional. When unset, the provider derives its values from dsh's active model configuration (the same provider the chat uses), so it works on any machine without baking in a proxy URL or model:
baseURL ← the active provider's baseURL (the chat's gateway).apiKeyEnv ← the active provider's apiKeyEnv.model ← the active model's id.candidateModels ← the active provider's full models[] list, so discovery
can race every model on that gateway and latch onto the first that actually
runs web_search.Only set a field here to override the derived value (e.g. to force a specific search model).
| key | default | meaning |
|---|---|---|
baseURL |
derived → $LITELLM_SEARCH_BASE_URL → http://127.0.0.1:4000/v1 |
LiteLLM proxy root; /responses is appended |
model |
derived (active model) | starting model id; the first pick |
candidateModels |
derived (active provider models[]) |
fallback pool raced in parallel when the active model fails to actually run web_search; the fastest searcher wins and is cached |
apiKeyEnv |
derived → LITELLM_API_KEY |
credential reference resolved at each search |
apiKey |
— | optional literal key (secret role) |
maxTokens |
4096 |
max_output_tokens for one search request |
timeoutMs |
60000 |
connect deadline + idle deadline for the response stream; resets whenever data arrives, so slow-but-active searches are never cut off (WEB_TIMEOUT only on real stalls) |
web_search with a query string.{baseURL}/responses with tools: [{"type": "web_search"}], stream: true.output_text becomes the result content, and every web_search_call item whose action is open_page contributes its URL to sources.This plugin appends no session events of its own. The harness reads
session logs fail-closed: any event type outside the build's
KNOWN_SESSION_EVENT_TYPES catalog aborts loading unless the event envelope
carries ignorable: true. A third-party type can never be in that catalog,
and the public session.append API offers no way to set ignorable, so a
custom log-only event here would make older harness builds refuse to open any
session this plugin ran in. Searches are still fully visible in the session
through the standard web_search tool call/result events.
include as not supported, so structured result items are consumed server-side; sources therefore carry url only (no title/snippet).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: web-search。