WJZ-P/dsh-model-capabilities

DeepSeek Herness plugin. dsh插件,支持在创建自定义模型时手动选择模型能力,比如模型是否支持图片输入等。DeepSeek Herness plugin. dsh插件,支持在创建自定义模型时手动选择模型能力,比如模型是否支持图片输入等。DeepSeek Herness plugin. dsh插件,支持在创建自定义模型时手动选择模型能力,比如模型是否支持图片输入等。The DSH plugin allows users to manually configure model capabilities when creating a custom model, such as image input support.

Project Overview项目介绍

This is a plugin built specifically for DeepSeek Harness (DSH), designed to extend the default model configuration page with an additional input type selector. Before this plugin, DSH could only guess if a custom OpenAI-compatible model supported multimodal image input based on default provider settings, which often led to mismatched capability declarations and incorrect behavior when handling image attachments. The plugin integrates directly into the existing model creation and editing workflow, letting users explicitly set what types of input the model can accept, aligning the configuration with the model’s actual capabilities.

To use the plugin, you first open DSH’s model settings page, then either create a new custom model or edit an existing one, and expand the advanced configuration section for the target model entry. You will see the new input type selector added by this plugin, and can choose from four options: inherit default, text only, image only, or both text and image. Once you save the configuration, DSH will use this new declaration to check if the model supports image input when you attach files to prompts. This plugin is most useful for users who add custom multimodal models to their DSH instance, as it prevents incorrect capability guessing.

You can install the plugin via npm by running the DSH CLI command dsh plugin --profile web add dsh-model-capability directly into your DSH web profile. The plugin is distributed under the open source MIT license, and development requires Node.js version ^22.19.0 or >=24.0.0 and the pnpm package manager. It currently targets DSH 0.1.0-rc.5’s web client extension interface, and follows DSH’s plugin conventions with proper package manifests and a pre-built browser bundle. The plugin only modifies the input field of the target model via DSH’s public extension slot, so it is low-impact and does not take over core DSH functionality.

这是一个专门为DeepSeek Harness(DSH)开发的原生插件,它会在DSH自带的模型设置页面添加一个轻量的输入类型选择器,解决了现有DSH无法准确识别兼容OpenAI API服务的自定义模型是否具备多模态能力的问题,允许用户在新建或编辑模型时,明确声明模型实际支持的输入类型,让能力声明与模型的真实能力保持匹配。

它的使用流程非常简单,用户只需打开DSH的模型设置页面,新建或编辑自定义目标模型,展开模型条目的高级配置区域后,就能在新增的输入类型选项中选择模型实际支持的能力,保存配置后DSH就会按照这份声明来判断模型是否支持处理图片输入。它主要面向需要在DSH中添加自定义多模态模型的用户,能帮用户避免能力声明不清晰导致的功能异常。

该插件遵循官方DSH插件约定,可以通过npm命令直接安装到DSH的web配置文件中,开发环境要求Node.js版本为^22.19.0或>=24.0.0,需要使用pnpm进行包管理,遵循MIT开源许可协议。它仅通过DSH公开的扩展槽更新模型配置的input字段,不接管表单和持久化逻辑,目前仅适配DSH 0.1.0-rc.5版本的Web客户端扩展接口。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-model-capability

把 WJZ-P/dsh-model-capabilities 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🎛️ dsh-model-capability

模型能力插件图标

在 DeepSeek Harness 新建或编辑模型时,明确选择模型支持的输入类型。

让多模态能力写进模型配置,而不是藏在猜测里 ฅ(•ㅅ•❀)ฅ

English · 简体中文

CI DSH Plugin Version License


✨ 它解决什么问题

部分 OpenAI 兼容服务已经支持图片输入,但 Harness 还需要从模型配置的 input 字段判断该模型是否具备图片能力。

dsh-model-capability 会在原生 Models 设置页中增加一个轻量的 输入类型 选择器,让能力声明与模型真实能力保持一致。

能力 表现
🎛️ 原生表单扩展 字段直接显示在 Harness 自带的模型编辑区域中
🖼️ 多模态声明 可选择文本、图片或文本与图片
🧬 默认值继承 保留提供方默认能力,不额外写入 input
🧩 低侵入实现 使用 settings.models.model.fields slot,不接管表单和持久化
🌗 主题适配 复用 Harness 设计变量,自动跟随深浅主题
🌍 中英双语 根据 Harness 当前语言显示对应字段文案

🖼️ 使用示例

下图展示了模型编辑区域中的 输入类型 字段。示例模型明确选择了 文本 + 图片,Harness 随后会按多模态模型处理图片附件:

模型输入类型选择为文本和图片

🧠 输入类型映射

界面选项 写入模型配置 适用场景
继承提供方默认值 省略 input 使用提供方或 Harness 的默认判断
文本 ["text"] 纯文本模型
文本 + 图片 ["text", "image"] 常见视觉语言模型
图片 ["image"] 仅声明图片输入的特殊模型

选择完成后,Harness 会继续负责模型校验、设置版本和持久化;插件只提交当前模型行的字段补丁。

🚀 安装

从 npm 安装到原生 DSH 的 web profile:

dsh plugin --profile web add dsh-model-capability

检查组合后的配置并启动 DSH:

dsh --profile web --dump-config
dsh --profile web

移除插件:

dsh plugin --profile web remove dsh-model-capability

🪄 使用方式

  1. 打开 Harness 的模型设置页面;
  2. 新建或编辑一个自定义模型;
  3. 展开模型条目的高级配置;
  4. 在 输入类型 中选择模型真实支持的能力;
  5. 保存模型配置。

如果模型支持图片,通常选择 文本 + 图片。完成后,Harness 的图片能力检查会读取这份标准模型声明。

🧭 集成边界

flowchart LR
  A["Harness Models 设置页"] --> B["settings.models.model.fields"]
  B --> C["输入类型选择器"]
  C --> D["更新当前模型 input"]
  D --> E["Harness 校验与持久化"]
  E --> F["附件发送前能力检查"]
  • Host 入口只参与标准 Cordis 生命周期;
  • 浏览器 bundle 通过官方 dsh.client 发现链路加载;
  • 字段更新通过模型页提供的 update 回调完成;
  • 插件与 Tauri API 解耦,可独立用于原生 DSH。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-chords 下一个 Next dsh-boot-guard →