lcb522/dsh-plugin-vision-bridge ↗★ 0

dsh-plugin-vision-bridge

Vision bridge: read_image is transparently served by a configurable vision model (default zai/glm-4.6v) when the session model is text-only; the description returns as text and the session keeps its selected model. Ships a live on/off card in Settings - Plugins 核心用途是解决纯文本模型无法处理图片的问题,通过后台桥接第三方视觉模型(如 GLM-4.6V)实现图片理解。适合经常切换不同模型且需要无缝图片解析能力的用户。

Package
dsh-plugin-vision-bridge
Compatibility
Unverified
Version
1.1.0
License
MIT
Last updated
Aug 17, 2026

Other repositories with this package name

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置(profile 的 cordis.patch.yml 中挂载行)

字段默认说明
providerzai视觉模型所在 provider 路由(settings.yaml 里配置的)
modelglm-4.6v视觉模型 id(必须在该 provider 的 models 列表中声明)
system见代码视觉调用的系统提示词(如何描述图片)
userText见代码视觉调用的用户侧指令
maxTokens16384视觉调用输出上限
timeoutMs180000视觉调用软超时
redirectReadImagetrue是否拦截 read_image 工具调用
redirectChatUploadstrue是否桥接聊天框图片上传

以上为引导期配置(改动需重启)。运行期总开关走设置卡片的 enabled(实时生效,见上)。

更换视觉模型

编辑 ~/.dsh/profiles/web/cordis.patch.yml 中 vision-bridge 行的 provider/model, 重启 harness 即可。模型需在 ~/.dsh/settings.yaml 的 llm-pi-ai.providers. .models 中声明(含 input: [text, image])。

安装与使用

1. 获取源码

git clone https://github.com/lcb522/dsh-plugin-vision-bridge.git