dsh-plugin-auto-vision
Manifest validDeepSeek Harness (DSH) 智能视觉模型增强插件:自动注入图片输入模态,解决第三方 Claude / GPT-4o / Gemini 识图降级与无法识别图片问题
dsh-plugin-auto-vision
DeepSeek Harness (DSH) Smart Multimodal Vision Enhancer Plugin
Resolves image recognition degradation and the "cannot see/recognize images" issue for third-party Claude, GPT-4o, Gemini, and open-source VL models.
🌟 Problem Statement
In DeepSeek Harness (DSH), when third-party multimodal models (e.g. claude-3-5-sonnet, gpt-4o, gemini-1.5-pro, qwen2-vl, etc.) are configured via custom providers (OneAPI, NewAPI, CLIProxyAPI, OpenRouter, ModelScope, reverse proxies), users frequently encounter this issue:
When uploading an image, the model replies: "I cannot view images / I cannot recognize images / As an AI I only accept text."
(Ref: GitHub Discussion #112)
🔍 Root Cause in DSH Core
- Fallback to Text-Only: Unless a model explicitly defines
input: [text, image], thepi-aiadapter defaults toDEFAULT_INPUT = ["text"]. - Silent Image Stripping: DSH's
projectImagesForTextModel()intercepts requests when a model lacks theimagemodality and silently replaces image blocks with:
The remote model literally never receives the image binary data![image omitted because this model accepts text only; attachment sha256:xxxx] - Manual Config Pain: Hand-crafting YAML overrides is tedious and easily overwritten by Web UI saves.
✨ Features
- 🚀 Zero-Configuration: Works out of the box after installation. No manual YAML editing needed.
- 🧠 Heuristic Vision Rules: Built-in regex patterns covering Claude 3/3.5/3.7/4, GPT-4o/4.5, Gemini, Qwen-VL, GLM-4V, InternVL, Llama 3.2 Vision, and more.
- 🛡️ Runtime Interception: Hooks into
ctx.llmand adapter pipelines to injectimageinput modality dynamically, preventing image stripping. - 🩺 Diagnostic Tool: Comes with
auto_vision_diagnosefor instant channel and model capability scans. - 🎨 Web UI Badge: Displays a
Vision Activebadge inside the message composer.
📦 Installation
Run inside the DSH terminal or system terminal:
dsh plugin install dsh-plugin-auto-vision
Or ask the agent in any active conversation:
"Install the dsh-plugin-auto-vision plugin for me."
🛠️ Diagnostics
Ask the agent:
"Run auto_vision_diagnose to check my configured models."
Returns the modality health status of all registered providers and models.
⚙️ Configuration Schema
Configurable via Web UI Settings → Plugins → auto-vision or cordis.patch.yml:
| Field | Type | Default | Description |
|---|---|---|---|
enableAutoInjection | boolean | true | Whether to automatically inject image input modality at runtime |
customVisionPatterns | string[] | [] | Custom regex strings for matching vision model IDs |
excludeModels | string[] | [] | Blacklist of model IDs to exclude from image injection |
📄 License
Licensed under the MIT License.
Comments
Loading…
Similar plugins
by xiaoyuink
图片识别插件 for DeepSeek Harness:自动判断当前模型识图能力,支持多供应商视觉模型管理与检测
★ 3
JavaScript
Sep 4, 2026
dsh plugin --profile web add @xiaoyuink/dsh-image-visionby Terry12138qy
DeepSeek Harness 识图插件:为不具备原生识图能力的模型提供识图能力(阿里云百炼 qwen3.5-omni-plus,失败自动切换智谱 glm-4.6v-flash)。由 claude-vision-skill 移植适配。 | Vision tool for DeepSeek Harness
★ 3
↓ 161/wk
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add dsh-visionby dami9527
DeepSeek Harness 插件:让 deepseek-v4-flash 等不能看图的模型也能处理聊天图片,内置识图工具。安装:dsh plugin --profile web add dsh-image-pathify
★ 4
↓ 768/wk
MIT
TypeScript
Oct 20, 2026
dsh plugin --profile web add dsh-image-pathifyby motongv
给 DeepSeek Harness(DSH)加视觉能力的插件:装完就能拖图识别——图片交给视觉模型识别、文字交给 DeepSeek 推理,聊天入口完全不变。DSH 专属插件。
★ 0
↓ 60/wk
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-vision-adapterby 123twtd
DeepSeek Harness (dsh) 模型视觉开关插件:为自定义模型声明图像输入能力(写入 llm-pi-ai 配置),适配 0.1.x
★ 0
JavaScript
Sep 3, 2026
dsh plugin --profile web add dsh-vision-toggleby wumu1111111
DeepSeek Harness 全模态插件:图像理解 + 文生图/图生图 + 视觉桥,支持对话直接发图
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-agnes-omni