Agents365-ai/dsh-vision-plugin ↗★ 4
dsh-vision-plugin
Image understanding for text-only models via OpenRouter free vision models
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Agents365-ai/dsh-vision-plugin说明文档
阅读完整 README ↗配置 OpenRouter
启动前设置 API Key(只从环境变量读取,未设置时插件会直接报错提示你配置):
export OPENROUTER_API_KEY=your_openrouter_api_key
deepseek-vision provider(自动配置)
插件首次启动时会自动在 $DSH_HOME/settings.yaml 写入默认的 deepseek-vision provider(指向 OpenRouter),无需手动配置。你可以随时修改或删除它:
llm-pi-ai:
providers:
deepseek-vision:
apiKeyEnv: OPENROUTER_API_KEY
api: openai-completions
baseURL: https://openrouter.ai/api/v1
reasoning: high
models:
- id: deepseek/deepseek-v4-pro
input: [text, image]
reasoningEfforts:
off:
high: high
max: max
- id: deepseek/deepseek-v4-flash
input: [text, image]
reasoningEfforts:
off:
high: high
max: max
然后在 Web UI 的模型选择器里选择这个 Provider 下的 DeepSeek 模型。
auto-vision 插件已内置上面两个别名模型 id 作为默认强制转换列表(DEFAULT_FORCE_MODELS),不需要再设置环境变量。
只有当你另外创建了其他"声明支持图片、实际纯文本"的别名时,才需要追加:
export AUTO_VISION_FORCE_MODELS=provider/other-alias-model
(环境变量中的模型会与内置默认列表合并使用。)