dsh-plugin-read-image-free

by xcodebuild

视觉与多模态github收录于 08-23

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

安装

dsh plugin --profile web add github:xcodebuild/dsh-plugin-read-image-free

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

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 生效。

原始 README: https://github.com/xcodebuild/dsh-plugin-read-image-free/blob/main/README.md ↗