D
dsh-llm-vision-router
v0.1.0 · 3 天前发布
DSH plugin: auto-route to a multimodal model when messages contain images, stay on the cheap model otherwise.
README
dsh-llm-vision-router
DSH 插件:消息含图片时自动路由到多模态模型,无图片时继续用便宜的 DeepSeek。
为什么需要
DeepSeek 没有视觉能力,但
app_screenshot、app_screenshot_diff 等工具会返回图片。如果图片直接发给 DeepSeek,它看不懂。本插件自动检测上下文中的图片,仅在那个请求切换到视觉模型。
成本对比:
安装
bash
dsh plugin add dsh-llm-vision-router
配置
yaml
id: vision-router
plugin: dsh-llm-vision-router
config:
visionProvider: openai # 视觉模型的 provider route
visionModel: gpt-4o-mini # 视觉模型 ID
toolResultsOnly: true # 只在工具返回图片时触发(忽略用户上传的图片)
verbose: false # 路由切换时是否打日志
支持的视觉模型
| Provider | Model | 价格参考 |
|----------|-------|---------|
| openai | gpt-4o-mini | ~$0.15/1M input |
| openai | gpt-4o |
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ❓ 未知 | metadata 缺失 |
dsh@0.1.0 | ❓ 未知 | — |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-llm-vision-router
- Repo
- —
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{}