lovezi0/dsh-model-extension
DSH自定义模型提供商时无法设置推理模式与多模态,可通过扩展插件解决
Project Overview项目介绍
dsh-model-extension is a model-management extension plugin built specifically for the deepseek-harness (DSH) agent host. It patches the bundle to disable the official Model settings page and replaces it with a dedicated "Models+" navigation tab, making it the sole model-configuration surface inside the host. Each row in the model catalog gains an expanded editor exposing reasoning-effort gears (off, minimal, low, medium, high, xhigh, max plus online values), input modalities (text, image), and compatibility fields (supportsReasoningEffort toggle plus thinkingFormat). It also accepts a metadata file at $DSH_HOME/models.json, either downloaded by the plugin or supplied manually, but only the https://models.dev/models.json schema is currently supported. Installation is done via dsh plugin --profile web add github:lovezi0/dsh-model-extension or the npm source dsh-model-extension; Desktop (Electron) requires the same source added from its in-app Plugins page because CLI and Desktop share $DSH_HOME but have independent lockfiles and activation states.
Typical workflow starts with the DeepSeek account route (deepseek-account), which is pinned to the top and hides its row when no model is available; its editor card intentionally excludes API keys and base URLs. Users then browse providers or models, expand a row, set reasoningEfforts, input modality, and compat, and save; every write goes through the native DSH settings.mutate and is persisted to $DSH_HOME/settings.yaml. The plugin also supports quick-install from the built-in llm-pi-ai metadata, splitting options for accurate filtering and dynamically surfacing model.compat. Target users are DSH power users who need fine-grained reasoning gears, gateway-protocol compatibility, and explicit multimodal input handling, including developers and operators juggling DeepSeek accounts and third-party model gateways.
The plugin declares dsh peer range [0.1.7, 0.2.0], MIT-licensed, and vendors the official store, operations, and schema-operations modules under src/client/vendor/ with source attribution, so the build is self-contained and does not require the DSH source tree. Build from source with npm install && npm run build. The author explicitly recommends cloning, performing security checks or scans, building from source, and then installing, rather than trusting prebuilt artifacts blindly. First-run caveats: confirm the host version matches the plugin's peer range, place or generate $DSH_HOME/models.json before expecting auto-prefill, install separately for web and Desktop profiles, and remember that Desktop lockfile state does not follow the CLI install.
dsh-model-extension 是面向 deepseek-harness 的模型管理扩展插件,通过 bundle patch 接管官方「模型」设置页,新增独立的「模型+」导航,作为宿主内唯一的模型配置入口。它在每行模型目录的展开区加入推理挡位(reasoningEfforts,含 off/minimal/low/medium/high/xhigh/max 档位及线上取值)、输入模态(text/image)与兼容性(supportsReasoningEffort 开关、thinkingFormat 字段),并允许从插件下载或本地放入 $DSH_HOME/models.json 自动预填,目前仅支持 models.dev/models.json 的数据格式。安装通过 dsh plugin --profile web add dsh-model-extension 或 npm 源挂载,Desktop 端需在其插件页内添加相同来源;CLI 与 Desktop 共享 $DSH_HOME,但插件激活与 lockfile 相互独立,需分别安装。
典型使用流程:先通过 DeepSeek 账号(deepseek-account)路由置顶账号型模型(无可用项时整行隐藏),再按厂商或模型维度浏览模型目录,展开后调整 reasoningEfforts、input 与 compat 等扩展字段,确认后保存,所有写入都走 DSH 原生 settings.mutate,落盘到 $DSH_HOME/settings.yaml。目标用户为需要自定义推理档位、网关协议兼容与多模态输入的 DSH 桌面与 CLI 用户,尤其是同时维护多个模型网关、DeepSeek 直连账号与第三方代理的开发与运维人员。
项目依赖 deepseek-harness 0.1.7–0.2.0 peer 范围,并将官方 store、operations、schema-operations 模块以 MIT 许可 vendor 至 src/client/vendor/,构建自包含、无需宿主源码,按 npm install && npm run build 从源码构建即可。许可为 MIT,但 README 作者明确建议先 clone 源码再做安全检查与扫描再构建安装;快速装入依赖内置 llm-pi-ai 元数据,使用前应确认当前 DSH 版本与插件版本对等、$DSH_HOME 路径正确,并区分 web 与 Desktop 两种 profile 重复安装。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-model-extension(lovezi0/dsh-model-extension)
仓库:https://github.com/lovezi0/dsh-model-extension
本站详情页:https://www.yhbd.top/plugins/lovezi0-dsh-model-extension/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-10-02 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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-extension
把 lovezi0/dsh-model-extension 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-model-extension
基于 deepseek-harness 的模型扩展插件
| 供应商 | 模型 |
|---|---|
![]() |
![]() |
作者建议(非AI编写) 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
功能
- 新增「模型+」设置导航(通过 bundle patch 禁用官方模型设置页,本页为唯一模型设置页)。
- 模型目录每行展开区新增扩展配置:
- 推理挡位(
reasoningEfforts):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值; - 输入模态(
input):text / image; - 兼容性(
compat):supportsReasoningEffort开关与thinkingFormat线制格式。
- 推理挡位(
- 支持通过
models.json元数据自动预填。可通过插件下载或自行下载并放到$DSH_HOME/models.json供插件使用。- 仅支持
https://models.dev/models.json数据格式。
- 仅支持
- 支持 DeepSeek 账号路由(
deepseek-account):置顶显示,无可用模型时整行隐藏;编辑卡片只含模型目录(账号不使用 API 密钥与地址)。 - 所有保存走 DSH 原生
settings.mutate,落盘$DSH_HOME/settings.yaml。
安装
Desktop 与 CLI 共享同一
$DSH_HOME下的会话、设置、凭证与工作区,但插件激活与 lockfile 彼此独立——同一插件需要在两侧分别安装。
Web / CLI(web profile)
# github
dsh plugin --profile web add github:lovezi0/dsh-model-extension
# npm
dsh plugin --profile web add dsh-model-extension
Desktop(Electron 应用)
只能在 Desktop 应用内的插件页安装,安装源填以下任意一种:
github:lovezi0/dsh-model-extension(git 源)dsh-model-extension(npm 源)- 本机某一绝对路径(开发自测)
从源码构建
构建自包含——官方逻辑模块已 vendor 至 src/client/vendor/(store / operations / schema-operations,见文件头来源标注),无需 DeepSeek Harness 宿主源码:
npm install
npm run build
版本历史
1.3.2
- 🔥模型列表支持拖动排序
1.3.1
- dsh peer [0.1.7 ... 0.2.0]
1.3.0
- 💪适配 deepseek harness 0.1.7-rc.2
- 💪适配 deepseek harness 官方 Desktop
- 🐛修复 deepseek harness desktop 快速装入下拉框透明的问题
1.2.3
- 🐛移除已作废的 dsh.adapter 逻辑
- npm publish
- 1.2.3-alpha.2
- 💪适配deepseek harness 0.1.7-alpha.1
- 1.2.3-alpha.1
- 🐛修复 llm-deepseek 获取模型错误的问题
1.2.1
- 🐛修复非 openai-completions API 协议网关保存报错
- 💪快速装入 model id 显示对应的API协议
1.2.0
- 🔥支持 dsh 内置 llm-pi-ai model 元数据快速装入
- 💪快速装入选项拆分,筛选模型更方便&准确
- 💪通过 llm-pi-ai 数据装入时,动态显示更多 model.compat
1.1.0
- npm publish
- 1.1.0-alpha.1
- 💪适配deepseek harness 0.1.5-alpha.2
1.0.0
- 🔥重构[模型+]界面
- 🔥新增models.json元数据自动预填
- 🔥禁用官方模型设置页(bundle patch id 覆盖)
outdated(0.x) — 开放deepseek harness内置模型扩展参数;v0.x 历史,见 CHANGELOG.md
许可
MIT。包含自 deepseek-harness(MIT)的 vendored 官方逻辑模块与派生代码。


titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate