DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Vision Toggle — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
V

@lijian-ui/dsh-vision-toggle

Vision Toggle

DeepSeek Harness (dsh) 的按模型视觉(图像输入)开关:列出所有已配置的模型,并切换开关以启用或禁用图像支持,无需手动编辑 settings.yaml。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:lijian-ui/dsh-vision-toggle#503d153a43b5666fcf213ed588e29ba399c2837b
README兼容性版本

说明

为 DeepSeek Harness (dsh) 提供按模型的视觉(图像输入)开关:列出所有已配置的模型,并切换开关以启用或禁用图像支持,无需手动编辑 settings.yaml。

兼容性与来源证明

Vision Toggle 以 @lijian-ui/dsh-vision-toggle 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/28

版本

0.1.1stable
2026/8/28

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/8/28
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 vision-media 分类下经过校验的插件。

Tool Describe Image@linxin666/dsh-tool-describe-image面向模型的 describe_image 工具,用于 dsh Web GUI:通过在兼容 OpenAI 的端点调用视觉语言模型,为文本模型提供图像理解能力,以描述一张图像(本地路径、http(s) URL 或附件引用)。可热插拔 —Modlens@liustack/modlens面向仅支持文本的 LLM 的插件视觉能力,由免费的 Antigravity CLI 提供支持Deepseek Ivideodeepseek-ivideoiPolloWork HyperFrames Video Studio,以及 27 个可编辑视频模板,以原生 DeepSeek Harness 对话视图呈现。Codexdsh-codexChatGPT OAuth、Codex 模型、搜索、read_image URL 支持,以及适用于 DeepSeek Harness 的 gpt-image-2 生成

README

dsh-vision-toggle · Model Vision Switch Plugin

English | 中文

A model vision toggle plugin for DeepSeek Harness (dsh) desktop: let users control whether each configured model supports image input — flip a switch to enable/disable vision per model, no config file editing and no restart required.

Features

FeatureDescription
Model ListRead every model declared in the llm-pi-ai provider routes, grouped by provider
Vision SwitchPer-model toggle to turn image input on (['text','image']) or off (['text'])
Immediate EffectWrites into the official config; llm-pi-ai re-registers on change — takes effect instantly, no restart
Optimistic UISwitch flips immediately; rolls back if the host write fails
i18nChinese / English, follows the dsh desktop language setting

Background

dsh officially supports multimodal (image understanding) with its own deepseek-v4-vision-exp model. However, the settings page offers no way to declare the input modalities (input) of custom providers or third-party models. If you add your own provider (e.g. an OpenAI-compatible service via LM Studio / vLLM / Ollama) whose model actually supports vision, sending an image still fails with:

当前模型不支持图片  (this model does not support images)

The only workaround today is to hand-edit settings.yaml and add input: [text, image] for the model — which is fragile and easy to get wrong.

This plugin removes that friction: it exposes the official llm-pi-ai settings namespace so each model gets a "Support image" switch in the settings page. Toggling it rewrites the model's input modalities for you.

Installation

Prerequisites

  • DeepSeek Harness (dsh) desktop
  • Node.js >= 18

Integration in dsh-desktop

  1. Install the plugin:
dsh plugin add @lijian-ui/dsh-vision-toggle
  1. Restart the desktop app.

Local Development

# Enter the plugin directory
cd extensions/dsh-vision-toggle

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run watch

# Type check
npm run typecheck

Build output goes to lib/ and is automatically synced to node_modules/@lijian-ui/dsh-vision-toggle via junction. Restart the desktop app after each build to load the new bundle.

Usage

  1. Open dsh desktop
  2. Navigate to Settings → Model Vision (modeled after the other settings sections)
  3. The section lists every configured model, grouped by provider. Next to each model there is a "Support image" switch:
    • On: the model accepts image input; you can now attach images in chat
    • Off: the model is text-only

Turning the switch on simply sets that model's input to ['text', 'image']; turning it off sets it back to ['text']. This matches exactly how dsh decides whether a model supports images.

Technical Architecture

Directory Structure

extensions/dsh-vision-toggle/
├── src/
│   ├── index.ts                    # Host entry (registers the remote service + typert contract)
│   ├── remote.ts                   # Host RPC: listModels / setVision (reads & writes llm-pi-ai config)
│   └── client/
│       ├── index.ts                # Client entry (SECTION_ID, RPC registration, inject)
│       ├── VisionToggleSection.ts  # Settings component (model list grouped by provider + toggles)
│       └── client-i18n.ts          # Client i18n (zh/en)
├── lib/                            # Build output (index.mjs + client.js)
├── package.json
├── tsdown.config.ts
└── cordis.patch.yml

Host Side (src/remote.ts)

Provides the following RPC methods:

MethodFunction
listModels()List all models declared in providers[*].models, with their current input modalities and whether they support vision
setVision(provider, modelId, enabled)Rewrite one model's input to ['text', 'image'] (on) or ['text'] (off) and persist

Config Read / Write

The plugin operates on the official llm-pi-ai settings namespace (settingsNamespace('llm-pi-ai')) owned by @deepseek-ai/dsh-llm-pi-ai — the same config that backs model selection and the "this model does not support images" error:

  • Read: settings.get('llm-pi-ai') returns the provider routes; each model's effective input falls back to the provider's defaultInput.
  • Write: uses settings.update('llm-pi-ai', { providers: ... }) with a rebuilt full models array. The path-based settings.mutate API cannot navigate array indexes (it would replace the whole array), so we rebuild the array instead.

Because llm-pi-ai resolves input per request and re-registers on settings change, a flip takes effect immediately with no restart.

Toggle Mechanism

User clicks the switch
  → Client optimistically updates the row (immediate flip)
  → RPC call to host setVision(provider, modelId, enabled)
  → Host: read config, rebuild models[], settings.update('llm-pi-ai', …)
  → llm-pi-ai detects the change and re-registers the model route
  → Config persisted to settings.yaml; next message uses the new modalities

If the host write fails, the client restores the previous switch state and shows an error.

Internationalization

Supports Chinese and English. Translation files are in src/client/client-i18n.ts. Language follows the dsh desktop language setting.

Tech Stack

  • Language: TypeScript
  • Build: tsdown (rolldown)
  • Frontend: React 18
  • RPC: @deepseek-ai/dsh-typert-protocol / @deepseek-ai/dsh-typert-registry (host remote)
  • Config: @deepseek-ai/dsh-settings (namespace llm-pi-ai)

License

MIT

Related Links

  • DeepSeek Harness (dsh)