wqy8593521/dsh-model-pro 预览 preview

wqy8593521/dsh-model-pro

Plugin插件 Native原生 ⭐ 6 MIT Models & Routing模型与路由

面向 DeepSeek Harness (DSH) 的动态 Cordis 插件,在设置页新增一个「模型 Pro」入口,为 llm-pi-ai 提供商提供全生命周期管理 UI:新建 / 编辑 / 删除、启用 / 禁用、拉取远端模型、连通性测试、智能路由、组合提供商、观测与探活——并在卸载时保证模型数据零丢失。

catalog descriptioncatalog 简介 / catalog description:Model Pro — DSH plugin for llm-pi-ai provider lifecycle management

Project Overview项目介绍

dsh-model-pro is a native Cordis plugin built exclusively for DeepSeek Harness (DSH). Once installed via the DSH plugin manager, it adds a new “Model Pro” entry to DSH’s settings page, giving users a full graphical UI for managing llm-pi-ai model providers through their entire lifecycle. The plugin supports all core configuration operations including create, read, update, delete, enable/disable toggling, remote model discovery, connectivity testing, intelligent routing, composite provider grouping, and health probing, and it is designed to not lose any user-owned model data when uninstalled.

This plugin is targeted at DSH users who manage multiple LLM API providers and need advanced routing and failover capabilities. To create a new provider, users can follow a three-step guided wizard that walks them through entering configuration details like base URL, API key, and custom request headers. After configuration, users can pull the full list of available models from the remote provider in one click, run a connectivity test on any model to confirm it works, and set up routing rules or composite providers to meet their specific needs.

dsh-model-pro is released under the permissive MIT open source license. The recommended installation method is to install the pre-built package from npm via the DSH plugin command dsh plugin --profile web add npm:dsh-model-pro, which avoids triggering build scripts and pnpm 10 security blocks. Installing from GitHub source requires adding an allowBuilds exception to your pnpm workspace configuration first, because the git source does not include pre-built output and requires a local build step. For local development, users can soft-link the working directory to their DSH profile to test changes without full reinstall.

本项目是面向 DeepSeek Harness(DSH)开发的原生 Cordis 插件,安装后会在设置页面新增「模型 Pro」入口,为 llm-pi-ai 模型提供商提供全生命周期管理 UI。它支持提供商的新建、编辑、删除、启用禁用,也能拉取远端模型、进行连通性测试、配置智能路由与组合提供商、开展健康观测探活,且承诺卸载时保证模型配置数据零丢失。界面会跟随 DSH 语言设置自动切换,支持中英双语显示。

该插件面向需要管理多个 LLM 提供商、配置故障转移与负载均衡的 DSH 用户。用户可以通过引导式三步向导新建提供商,编辑 API 地址、密钥、自定义请求头等信息,一键拉取远端模型列表并批量写入,还能对单个模型做连通性测试,验证配置是否可用。支持配置五种智能路由策略,也可以将多个提供商合并为虚拟组合提供商,满足多上游互备等需求。

本插件采用 MIT 许可证开源,推荐从 npm 安装预构建版本,无需执行构建脚本,不会触发 pnpm 安全拦截。若从 GitHub 源码安装,需要先在 pnpm 配置中允许构建脚本,否则会安装失败。本地开发可以通过软链方式安装到 DSH 配置文件,修改代码后重新构建刷新页面即可查看效果,卸载或禁用都会自动还原原有配置。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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 npm:dsh-model-pro

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

READMEREADME

dsh-model-pro · 模型 Pro

npm version License: MIT

面向 DeepSeek Harness (DSH) 的动态 Cordis 插件,在设置页新增一个「模型 Pro」入口,为 llm-pi-ai 提供商提供全生命周期管理 UI:新建 / 编辑 / 删除、启用 / 禁用、拉取远端模型、连通性测试、智能路由、组合提供商、观测与探活——并在卸载时保证模型数据零丢失。

中文文档 · 界面内置中英双语(跟随 DSH 语言设置自动切换)。


✨ 功能特性(Features)

提供商管理

  • 提供商 CRUD — 新建(引导式 3 步向导)、编辑、删除,卡片式列表带状态色条(绿=启用 / 琥珀=禁用)。
  • 启用 / 禁用 — 一键切换。禁用的提供商会移入 disabledProviders,从模型选择器中隐藏,但配置完整保留。
  • 字段编辑 — 逐项编辑 baseURL、api 协议、apiKeyEnv、displayName(概览页附「就绪检查」清单)。
  • 自定义请求头 — 按提供商增删改 HTTP 请求头(authorization / api-key 由适配器自动填充,无需手填)。

密钥与凭据

  • 加密存储 — 在 GUI 中直接粘贴 API Key,以 AES-256-GCM 加密写入配置(配置文件只存密文),同时写入 DSH 凭据服务供请求时解析。
  • 按需解密查看 — 默认掩码显示,点「显示已存」可解密查看;加密主密钥存于凭据服务且永不重新生成,卸载重装后旧密文仍可解密。

模型

  • 远端模型发现 — 一键 GET /models 拉取,支持全选 / 取消全选 / 反选。
  • 批量写入模型 — 将选中模型「替换」或「合并」进提供商的显式模型列表。
  • 本地转发名映射 — 为某个模型设置「转发名」,选它时实际向 provider 发送映射后的模型名。

连通性测试

  • 真实连通性测试 —「测试」页对选定模型发起一次极小的真实推理,走完整凭据 / 请求头 / 协议链路,返回延迟、停止原因与回复内容,用来在依赖之前确认模型确实可用。

智能路由与组合

  • 智能路由 — 命名路由(如 auto)聚合多个 provider 的模型,支持 5 种策略:priority(顺序优先+回退)/ weighted(按权重随机)/ round-robin(平滑加权轮询)/ min-latency(历史低延迟优先)/ sticky(会话粘滞)。可设每目标权重、启用开关、healthAware、会话粘滞、maxFallbacks、单目标超时。在模型选择器里选「router / 路由名」即用。
  • 无感切换(真实回退) — 首选目标不可达时自动换下一个目标:回退判定基于「首个内容块是否真正产出」,连接拒绝、HTTP 错误、空响应、超时(timeoutMs)都会在任何内容到达对话之前完成切换,对话无感知、不中断;调用方主动中止永不重试。回退成功的请求在观测台标记为 fallback。
  • 组合提供商 — 把多个 provider 的模型合并成一个虚拟 provider,支持并集 / 交集两种模式(模型选择器中显示为 composite / 组合名::模型);交集非常适合同款模型多上游互备。

观测与健康

  • 探活(Probe) — 对每个目标(provider + model)发起真实最小请求,标记 up / down / probing 与连续失败次数;健康感知分发会自动跳过 down 的目标(可按路由关闭)。
  • 观测台 — 会话内请求日志(路由 → 目标、状态、思考档位、延迟、token)与聚合统计(按路由 / 按目标:调用次数、成功率、平均延迟、token 合计),以统计卡与表格呈现。
  • 思考档位留痕 — 路由对外声明的是所有目标档位的并集,所以选 max 时若实际服务的目标只支持到 high,请求会成功但自动降档。观测台日志的「思考档位」列会标出 max → high(目标完全不支持时标 max → 未下发),对话徽章上同步显示 max→high,避免「选了高档位却拿到低档位答案」无从察觉。
  • 对话提供商徽章(可开关) — 开启后,每个回合完成时会在其下方显示智能路由 / 组合实际选中并服务该回合的目标(provider/model),发生自动切换时标注「已无感切换」;在「智能路由 → 观测台」用「对话下方显示实际提供商」开关控制,偏好持久化保存。

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-skill-market 下一个 Next llm-wiki →