winliyou/dsh-plugins--packages-vision-router ↗★ 0
@chaoset/vision-router
DSH host plugin: route image requests to a vision model for transcription when the session model is text-only
AI 分析
核心用途是为纯文本模型补充识图能力。适合在使用不支持多模态的主模型时,仍需处理图片输入任务的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:winliyou/dsh-plugins#c4f3ebb6f33963c89385cecc3318105249464713&path:packages/vision-routerドキュメント
README 全文を読む ↗配置
生效顺序(后者覆盖前者):
- 插件内置默认值
- bundle patch 中
cordis.patch.yml的 config - 用户 profile/home 的
cordis.patch.yml覆盖 - DSH 设置页 → 插件配置 → 识图降级(保存到
$DSH_HOME/plugins/vision-router/config.json, 立即热生效,无需重启)
| 字段 | 默认值 | 说明 |
|---|---|---|
visionProvider | zai-open | 视觉模型所在 provider |
visionModel | glm-4v-flash | 视觉模型 id(必须真实声明 image 输入,否则报错) |
autoDiscover | true | 配置的模型不可用时自动寻找支持图片的模型 |
sourceHint | true | 转述文本后附带图片来源说明(read_image 文件路径 / 粘贴无源文件提示 / 本地副本路径) |
maxVisionTokens | 2048 | 转述输出上限 |
prompt | 内置模板 | 转述提示词,{count} 为图片数 |
compressImageBytes | 4194304 | 压缩触发字节数 |
compressMaxDimension | 1600 | 压缩最大边长(px) |
compressTargetBytes | 2097152 | 压缩目标字节数 |
compressFallbackDimension | 1200 | 回退压缩边长(px) |