安装
在 DeepSeek Harness 里通过 dsh-market 安装
dsh plugin --profile web add dshmarket
或使用命令行
dsh plugin --profile web add dsh-vision-free-eyes
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络。请先审阅源码,并尽量锁定 commit(github:owner/repo#sha)。
README
给 DeepSeek Harness(DSH)的纯文本模型补上免费「眼睛」:一个模型可调用的 vision(image, question) 工具,
直连智谱 GLM 免费视觉 API(glm-4v-flash → glm-4.6v-flash → glm-4.1v-thinking-flash 自动降级链),
不依赖任何外部 CLI。完整说明见仓库根目录的 README。
安装(发布后)
dsh plugin --profile web add dsh-vision-free-eyes
或在 profile 的 cordis.patch.yml 中追加:
- insert:
- id: dsh-vision-free-eyes
name: dsh-vision-free-eyes
前提
- 必须:智谱 GLM 免费 key,环境变量
GLM_API_KEY或ZHIPU_API_KEY(open.bigmodel.cn 注册即得,格式id.secret;Windows 也可setx,插件自动读注册表)。 - 出站 HTTPS 到
open.bigmodel.cn。
使用
告诉模型图片路径即可,例如:"看一下 D:\xxx\screenshot.png"。
可选参数:mode="ocr"(只提取图中文字)、no_cache=true(跳过进程内结果缓存)。
输出为图片内容的文字描述,末尾带 [glm | 耗时ms] 标记。
配置
| config | 默认 | 说明 |
|---|---|---|
apiKeyEnv |
GLM_API_KEY / ZHIPU_API_KEY |
GLM key 的环境变量名(可传数组) |
no_cache |
false |
跳过进程内结果缓存,强制重新请求 |
限制
- 单图 ≤ 15MB;支持 png/jpg/jpeg/webp/gif/bmp。
- 不支持 PDF(
doc模式已移除);图片字节会上传到智谱服务器。