ysr666/dsh-vision-router469

dsh-vision-router

为纯文本 DSH 智能体提供视觉能力的插件:内置免费视觉链,提供问答、定位、裁剪、OCR、截图等像素级视觉工具。

AI 分析

核心用途是赋予不支持多模态的 Agent 图像识别与屏幕操作能力。适合需要 Agent 处理截图、识别图片文字、进行像素对比等视觉任务的场景,无需本地 Python 环境。

包名
dsh-vision-router
版本
1.4.4
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ysr666/dsh-vision-router

Configuration

Everything is optional; defaults work out of the box. Edit via the Web card or a profile patch:

FieldDefaultMeaning
provider / modelvision-http / ovh/Qwen2.5-VL-72B-Instructshorthand vision backend route (adapter-backed provider + model that genuinely accepts images)
fallbacks[]backup image models for the shorthand vision provider
providersbuilt-in free vision-http pairmulti-provider vision backend chain { provider, model, fallbacks[] }, tried in order; do not put text-only models here
httpProvidersbuilt-in OVH entrydirect OpenAI-compatible endpoints { name, baseURL, model, apiKeyEnv, maxTokens }
autoWrapProviderstruediscover enabled provider/models and live-sync same-name “+ Auto Vision” groups; original groups stay unchanged
wrappedProviders[{ provider: 'deepseek-official', models: [] }]optional manual wrapper scope { provider, models[] }, used after disabling auto-wrap or to restrict one provider to selected models; changes apply live, no restart
routingfalselegacy whole-turn chain routing (one-shot answer). false = tools-first flow (recommended)
reverseRoutingtruewith routing: true, route text turns back to textProvider
wrapperRoute / chainRoutedeepseek-vision / vision-chainadmission wrapper route name / fallback chain route name (empty disables)
stealthfalsetake over the official deepseek-official route (official row only; custom routes are auto-wrapped by default)
textProviderdeepseek-official / deepseek-v4-prothe model that reasons (your daily model)
tool / progressiveTools / autoActivateOnImagetrue / false / truevision tools on / progressive mounting (off by default for a stable tool schema) / image-turn auto-mount when progressive mode is enabled; progressiveTools is boot-time config
rewriteImagestruerewrite image blocks in the model input (cached description or tool-hint marker); the UI log keeps images
downscale / downscaleMaxPixelstrue / 4000000pre-call downscale and its pixel budget (latency guard)
cache / cacheTtlSeconds / cacheMaxEntriestrue / 3600 / 200vision answer cache
timeoutMs120000per vision call deadline
artifactsDir.dsh-vision-router/artifactsartifact directory (relative to the session workspace)
proxy / proxyHosts'' / openrouter hostsoptional proxy for vision provider hosts only
catalogCorrectionstruebuilt-in catalog-routing corrections: when the installed pi-ai catalog routes a known model to the wrong wire protocol (e.g. opencode-go/qwen3.6-plus to OpenAI chat completions while OpenCode Go only serves it on /v1/messages), the plugin answers that backend directly over the corrected protocol. Each correction disarms itself once the catalog is fixed upstream