dsh-plugin-read-image-free
v0.2.2
Published
dsh web 插件:不因模型不支持图片而拒绝附件(图片保存到本地后把带扩展名的绝对路径以文本传给模型);并内化 image-read-free 技能逻辑,注册 read_image_free 工具(调用智谱 GLM-4.1V-Thinking-Flash 做 OCR/图像理解),模型无需该技能即可直接处理图片
Downloads
81
Maintainers
Readme
dsh-plugin-read-image-free
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 生效。
