鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-web-search-zhipu

GLM(智谱)网页搜索 provider——把 web_search 后端切到智谱 Anthropic 兼容端点的服务端搜索工具,直接复用你现有的 GLM 额度或 Coding Plan,替代 DeepSeek 官方搜索通道,并内置智谱私有响应格式的翻译层。

网页浏览
访问 GitHub
文档README

dsh-web-search-zhipu

为 DeepSeek Harness (DSH) 编写的 GLM(智谱 bigmodel)网页搜索插件。让 DSH 的 web_search 工具走智谱的 Anthropic 兼容端点(https://open.bigmodel.cn/api/anthropic/v1),消耗你现有的 GLM 额度 / Coding Plan,替代官方 dsh-web-search-deepseek 的 DeepSeek 通道——不需要 DeepSeek 平台余额,也不需要再注册任何搜索服务。

简体中文 | English

为什么需要它

智谱端点功能上支持 Anthropic 的 web_search_20250305 服务端工具,但返回的不是标准 Anthropic 布局:

Anthropic 标准(DSH 要求)智谱实际返回
结果块类型web_search_tool_resulttool_result
内容格式结构化数组 {type:"web_search_result", url, title}Python-repr 风格字符串
URL 字段urllink

本插件内置格式翻译层(lib/repr.js),两种布局都能解析、按 URL 去重、拼接引用摘要——web_search 工具保持稳定的 schema 与引用卡片,后端则计费到你的智谱账户。

安装

插件市场收录后可直接安装,或:

▼
sh
复制代码
dsh plugin --profile web add dsh-web-search-zhipu

然后重启 dsh web。插件会注册搜索 provider glm-bigmodel,并随附 patch 将 web.searchProvider 指向它。

要求:

  • DSH web profile,dsh >= 0.1.1-rc.1(在 0.1.1-rc.2 上验证)
  • Node.js >= 20
  • 智谱 bigmodel API key,存于 DSH 凭据服务,键名 ZAI_CODING_CN_API_KEY(通常就是 agent 的 GLM 模型在用的那把)

配置

默认零配置可用;设置页 → 插件里会出现 web-search-glm 配置节。

配置项默认值说明
apiKeyEnvZAI_CODING_CN_API_KEY凭据服务里的 key 引用
baseURLhttps://open.bigmodel.cn/api/anthropic/v1也可用环境变量 GLM_SEARCH_BASE_URL 覆盖
modelglm-4.6任意 GLM 对话模型
apiVersion2023-06-01anthropic-version 请求头
maxTokens4096单次搜索生成上限
maxUses3单次请求搜索工具调用上限

回滚

▼
sh
复制代码
dsh plugin --profile web remove dsh-web-search-zhipu

移除后若不重新指定 web.searchProvider,会自动回落到剩余唯一注册的 provider(内置 deepseek-official)。

English

A DeepSeek Harness web-search plugin that routes the web_search tool through Zhipu's (bigmodel) Anthropic-compatible endpoint, billing your existing GLM quota / Coding Plan instead of the DeepSeek platform. Ships a translation layer for Zhipu's non-standard tool_result response layout (plus standard Anthropic layout), with URL dedupe and citation-snippet joining. Zero-config with defaults; provider id glm-bigmodel.

▼
sh
复制代码
dsh plugin --profile web add dsh-web-search-zhipu # then restart dsh web

开发

▼
sh
复制代码
node test/unit.mjs # 解析器单测(真实响应回放 + 合成样例) node test/e2e.mjs # 真实端点 e2e(读取 ~/.dsh/.credentials.yaml 的 ZAI key)

License

MIT

网页浏览

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:PartinGQAQ/dsh-web-search-zhipu

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-chrome-cdp
Chrome DevTools Protocol 插件 for DeepSeek Harness。通过 chromremote-interface 以 CDP 连接并操控 Chrome。连接带有图形界面。
dsh-webmcp
WebMCP 桥接器:让 agent 通过内置无头 Chromium,发现并调用网站按 W3C WebMCP 协议暴露的站点工具。
dsh-web-search-ollama
让 DSH 的 web_search 工具走 Ollama 联网搜索 API,复用 OLLAMA_API_KEY,无需 DeepSeek 官方 Key。
dsh-web-search-tavily
为原生 web_search 提供 Tavily 搜索后端,并在设置 → 插件中提供 API Key 管理与是否替换 DeepSeek 的开关。
dsh-search-hub
可配置的原生 web_search 后端:在 DeepSeek 官方原生搜索与智谱 GLM web_search 之间切换当前生效入口,并在设置页管理搜索入口与凭证引用。