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
AI 분석
核心用途是解决纯文本模型无法处理图片的问题,通过后台桥接第三方视觉模型(如 GLM-4.6V)实现图片理解。适合经常切换不同模型且需要无缝图片解析能力的用户。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
配置(profile 的 cordis.patch.yml 中挂载行)
| 字段 | 默认 | 说明 |
|---|---|---|
provider | zai | 视觉模型所在 provider 路由(settings.yaml 里配置的) |
model | glm-4.6v | 视觉模型 id(必须在该 provider 的 models 列表中声明) |
system | 见代码 | 视觉调用的系统提示词(如何描述图片) |
userText | 见代码 | 视觉调用的用户侧指令 |
maxTokens | 16384 | 视觉调用输出上限 |
timeoutMs | 180000 | 视觉调用软超时 |
redirectReadImage | true | 是否拦截 read_image 工具调用 |
redirectChatUploads | true | 是否桥接聊天框图片上传 |
以上为引导期配置(改动需重启)。运行期总开关走设置卡片的 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