← 返回列表
未验证
面向 DeepSeek Harness web 接缝ctx.web的 xAI 支持的…
尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/25 · 已提供中文文档
综合分
27.4
GitHub 分
27.4
用户评分
—
★ Stars
0
周下载量
—
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add k12u/dsh-web-search-xai该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/18(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动
README
dsh-web-search-xai 面向 DeepSeek Harness web 接缝(ctx.web)的 xAI 支持的 WebSearchProvider。 它不会注册面向模型的工具。对话模型仍然调用 dsh-tool-web 的 web_search。这个包只提供后端:一个带有原生服务端 web_search 工具的辅助 xAI Responses 请求,然后把引用映射到接缝的 WebSearchResult。 这与 @deepseek-ai/dsh-web-search-deepseek 形态相同,而不是“把 xAI web_search 放到对话轮次上”。 安装(此 profile) dsh plugin --profile web add /absolute/path/to/dsh-web-search-xai 然后在 profile 的 cordis.patch.yml 中插入插件并选择它: - id: web config: searchProvider: xai - insert: - id: web-search-xai name: dsh-web-search-xai config: apiKeyEnv: XAI_CUSTOM_API_KEY model: grok-4.6 重启现有的 DSH 进程。第二个服务器不会更新当前 GUI。 配置 | 键 | 默认值 | 含义 | |---|---|---| | apiKey | 省略 | 字面密钥。优先使用 apiKeyEnv。 | | apiKeyEnv | XAI_API_KEY | 每次搜索时通过 ctx.credentials 解析的凭据引用,否则使用启动环境。 | | baseURL | https://api.x.ai/v1 | Responses API 基础地址;会追加 /responses。$XAI_SEARCH_BASE_URL 是环境变量回退。 | | model | grok-4.6 | 辅助搜索模型。 | | maxOutputTokens | 2048 | 辅助请求的 max_output_tokens。 | | allowedDomains | 未设置 | 最多 5 个域名。不能与 excludedDomains 组合使用。 | | excludedDomains | 未设置 | 最多 5 个域名。 | | enableImageUnderstanding | false | 将 enable_image_understanding 转发给 xAI。 | 这个树外插件保持零 @deepseek-ai/ 导入,因此 link: 安装可以从工作区加载。通过 profile 的 cordis.patch.yml 更改模型或密钥并重启。 映射 - content ← Responses 的 output_text / 消息文本 - sources[] ← 顶层 citations、url_citation 注解,以及 web 搜索输出项上任何结构化的 sources/results - 缺少原生搜索证据(citations、web_search 输出项或 server_side_tool_usage)会报 WEB_PROVIDER_ERROR 一次搜索会消耗一整轮 xAI 模型调用。
扫码进群