dsh-plugin-read-image-free

August 14, 2026 · View on GitHub

dsh web 插件:让模型理解图片内容 —— 使用 bigmodel.cn 提供的免费 vision 模型(GLM-4.1V-Thinking-Flash)进行 OCR、画面描述、图内文字翻译等,对不支持图片输入的模型同样可用。

插件会注册一个 read_image_free 工具,模型直接传图片路径即可调用。多条图片路径之间以空格分隔,避免黏连成 /a.png/b.png

效果

效果图

配置

免费申请 key:https://bigmodel.cn/apikey/platform

安装

dsh plugin --profile web add dsh-plugin-read-image-free

自动挂为 bundle 层并插入插件行,重启 dsh web 生效。可选在 ~/.dsh/profiles/web/cordis.patch.yml 按 id 覆盖配置:

- id: read-image-free
  config:
    apiKey: '你的智谱KEY'   # 可选;不填则读环境变量 / config.json

卸载

dsh plugin --profile web remove dsh-plugin-read-image-free

重启 dsh web 生效。