Declare whether a configured third-party model accepts image (multimodal) input; writes the modality into the owning provider settings and verifies it through runtime model resolution.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ct-jyjntc/dsh-model-modality
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness 插件:声明第三方模型(中转站 / 自定义提供方)是否支持图像(多模态)输入。
它做什么
DSH 运行时对图像的门禁(消息图片、read_image 工具、附件上传、子代理图像提示)都依赖模型元数据中的 inputModalities。本插件让用户直接声明某模型的输入模态,并把声明写入拥有该模型的提供方设置:
llm-deepseek(官方 / 自定义 baseURL)→models[].inputModalitiesllm-pi-ai(第三方提供方目录)→models[].input或modelOverrides[].input
写入后立即通过 llm.resolveModelInfo 校验,因此声明生效后:
- 该模型可以接收图片消息(不再被
Model does not support image input拦截); read_image等图像工具被放行;- 底层流调用不再把图片投影成文本。
声明的持久化位于提供方自己的设置(DSH 的 Models 设置页可查看/编辑),与插件本身互不影响。
安装
dsh plugin add ct-jyjntc/dsh-model-modality
安装后可用两个工具(对话中直接让 agent 调用):
declare_model_multimodal(provider, model, supportsImage)— 声明某模型是否支持图像输入,返回写入与校验结果;list_model_multimodal(provider?, model?)— 列出各可配置提供方模型的输入模态。
浏览器端 UI(可选)
设置 → 模型 → 每张提供方卡片内的「多模态(图像输入)」开关,以及 Run 卡片面板,需要会话级动态插件挂载(客户端模块未随本包发布)。需要时让 agent 挂载即可。
示例
declare_model_multimodal(provider="raincode", model="kimi-k3", supportsImage=true)
→ { ok: true, verified: true, inputModalities: ["text","image"], ... }
License
MIT
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 47046
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 721
Connects locally signed-in WorkBuddy models to DSH, supports per-model image input opt-in, account switching, and a read-only credits overview with daily check-in.
V1ki/dsh-plugin-subscriptions★ 521
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
Mars-Sea/dsh-commandcode-provider★ 441
Unofficial Command Code LLM provider: registers a `commandcode` route with a live model catalog and reasoning-effort support.
Alice-Marx/dsh-model-router★ 405
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
FishBottle7/opencode2dsh★ 365
Exposes OpenCode Zen free models to DeepSeek Harness, with no API key.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.