lovezi0/dsh-model-extension 预览 preview

lovezi0/dsh-model-extension

Plugin插件 Native原生 ⭐ 3 MIT Prompts & Skills提示词与技能

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 重复安装。

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-extension

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

READMEREADME

dsh-model-extension

基于 deepseek-harness 的模型扩展插件

License: MIT npm DeepSeek Harness:0.2.0-rc.1 Desktop: supported

供应商 模型
模型+ 供应商 模型+ 模型

作者建议(非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 官方逻辑模块与派生代码。

← 上一个 Prev dsh-hold-to-talk 下一个 Next dsh-obsidian-mem →