LiangYin233/dsh-model-config-sync ↗★ 2
dsh-model-config-sync
Apply a preset (installed catalog) model's context window, max output and reasoning efforts to any configured custom provider, straight from a dedicated settings page — no catalog update needed.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LiangYin233/dsh-model-config-sync说明文档
阅读完整 README ↗模型配置同步 (Model Config Sync)
一个 DeepSeek Harness (DSH) 可安装插件包(bundle):把 pi-ai 已安装目录(预设)中某个模型的上下文、输出上限与推理档位配置,一键应用到已配置的自定义提供商上;也可以不选预设,作为高级模型配置器手动填写模型条目并写入。
背景
DSH 默认 LLM 提供商链路基于 @deepseek-ai/dsh-llm-pi-ai,底层是 @earendil-works/pi-ai 的安装目录 catalog(内置各提供商的模型、上下文、推理能力数据)。
问题:
- 新模型发布而目录未更新时,原生「自定义提供商」卡片无法给出预设模型的
contextWindow/reasoningEfforts等数据,只能手查; - 原生卡片刻意不提供推理档位(reasoning effort)编辑——它认为这是模型级能力,而模型选择器(composer)需要这些数据才能给出正确档位;
- 手写模型条目没有推理能力声明时,模型不会按预期推理。
本插件把「复制预设模型配置 / 手动编写模型条目」做成一个独立设置页,直接写入 llm-pi-ai 的 providers..models,无需等待目录更新。
安装
本插件以 DSH bundle 形式发布:通过 dsh plugin 命令(在 profile 内执行 pnpm 并合并 bundle 层)安装。
# 从 git 安装(推送到 GitHub 后即可用此地址)
dsh plugin --profile web add https://github.com/LiangYin233/dsh-model-config-sync/archive/refs/heads/main.tar.gz
# 或从本地打包安装(开发时;git/registry 安装会把包物化为 profile 内的真实目录,
# 而 pnpm 对 `add ` 使用符号链接,宿主端 ESM 依赖解析会失效,请走 tarball)
npm pack
dsh plugin --profile web add ./dsh-model-config-sync-0.1.0.tgz
然后重启 Web 服务器并刷新页面:
- Host 插件挂载为
dsh-model-config-sync;Client bundle 由/plugins/dsh-model-config-sync/client.js提供; - 打开 Web 设置 → 左侧导航「模型配置同步」(Models 页之后)。
安装要求:pnpm(在 PATH 中)、DSH
0.1.0-rc.6或更高版本。卸载:dsh plugin --profile web remove dsh-model-config-sync。
功能
- 独立设置页「模型配置同步」(挂在
settings.section,与官方 Models 页并列,零侵入); - 预设来源可选:
- 选择预设提供商 + 模型 → 自动填充下方字段(快速填充);
- 不选预设 → 纯手动填写(高级配置器),可自由添加/删除推理档位;
- 同步/编辑字段:
- 模型 ID、显示名称
contextWindow(上下文窗口)maxTokens(最大输出)- 输入模态
input(text / image) - 推理档位
reasoningEfforts(档位 → wire 值的字典,off 留空 = 不发送)