online_model_discovery
Manifest validAdds live model discovery and per-model reasoning-effort editing for third-party pi-ai providers.
Online Model Discovery
为 DeepSeek Harness 的内置第三方模型提供商提供两类能力:
- 在线模型列表发现:直接向提供商端点请求
/models,网络失败时回退到 pi-ai 内置目录; - 逐模型思考强度设置:在不修改 DSH 本体的前提下,为内置目录提供商补齐每个模型的
reasoningEfforts编辑入口。
截图
设置页中的入口:

按模型编辑思考强度:

功能
- 在线发现:对
llm-pi-ai下的提供商请求模型列表,支持 OpenAI 兼容协议与 Anthropic Messages 协议; - 匿名尝试:没有 API Key 时先尝试匿名请求,公开端点(如 OpenRouter)可直接使用;
- 元数据补全:从端点返回中解析上下文窗口、最大输出 token、输入类型与推理档位,并在发现、保存和运行时
resolveModelInfo三处补全; - 思考强度编辑:内置目录提供商可按模型开关推理、编辑档位与 API 参数值,保存后写入 provider 配置;
- 显式关闭:关闭思考强度写入
reasoningEfforts: false,不会被后续保存重新补回; - 作用域收敛:自定义模型 API 路由(原生已有推理等级编辑器)与新增提供商草稿卡不显示入口;
- 失败提示:网络请求失败回退目录时,短暂显示橙色提示。
安装
dsh plugin --profile web add github:DHLlib/online_model_discovery
桌面端请在应用内 设置 → 插件 中从本地目录或市场安装。
要求:
- DeepSeek Harness
0.2.2-rc.1(当前验证版本); - 提供商通过
llm-pi-ai配置,例如kimi-coding、openrouter、anthropic; - 需要在线发现真实模型时,提供商的
/models必须可访问;Kimi Code 等端点需要 API Key。
使用
- 打开 设置 → 模型;
- 在已保存的第三方提供商卡片上点击 设置思考强度;
- 在弹窗中为每个模型打开开关,编辑
档位 / API 参数值,点击保存; - 模型列表为空时按钮置灰,需先点 获取可用模型 并保存模型列表。
Kimi Coding 的推荐档位:
| 档位 | API 参数值 |
|---|---|
| low | low |
| high | high |
| max | max |
工作方式
- 宿主侧
index.js包装llm.discoverModels与llm.resolveModelInfo,并暴露本地只读/写入路由; - 客户端
client.js只使用官方settings.models.provider-cardslot,不做 DOM 注入; - 提供商配置仍保存在
llm-pi-ai,不新增自定义 provider。
兼容性与限制
- 仅覆盖通过 pi-ai 添加的第三方提供商;DeepSeek 官方账号不在此范围;
- 端点的
/models不返回推理档位时(例如 Kimi Code),需要在弹窗中手动配置; - 不同端点的元数据字段不统一,插件只采用显式字段,未识别时保留 pi-ai 目录值;
- 不修改 DSH 本体,不依赖私有 API;DSH 升级后如 slot 或 provider 字段变化,可能需要同步适配。
开发
node --check index.js
node --check client.js
目录:
index.js 宿主插件:模型发现、元数据补全、设置读写路由
client.js 客户端插件:提供商卡片入口与思考强度弹窗
cordis.patch.yml Loader 插件行
locale/ 插件显示名与描述
icon.svg 插件图标
docs/images/ README 截图
Comments
Loading…
Similar plugins
Declares per-model reasoning-effort ladders for third-party providers in the llm-pi-ai settings section, so DSH's stock thinking-intensity selector works on models the pi-ai catalog does not describe.
★ 0
dsh plugin --profile web add dsh-reasoning-tiersby HaoyueQin
Reasoning-effort editing for third-party models in DeepSeek Harness: per-model thinking levels with a knowledge base + protocol inference, edited inside the official Models page card.
★ 69
↓ 845/wk
MIT
TypeScript
Oct 18, 2026
dsh plugin --profile web add dsh-better-reasoning-effortby honoriomelo
DSH Web GUI plugin: adds a live search field inside the model picker menu of the composer, plus the Effort (reasoning) selector. Drop-in replacement for the native model seat, sharing the same per-ses
★ 0
MIT
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-model-picker-searchby Kalospacer
Adds a settings page for declaring per-model reasoning efforts and vision support on pi-ai provider routes.
★ 4
MIT
JavaScript
Nov 4, 2026
dsh plugin --profile web add dsh-model-capabilitiesby JohnXu22786
Auto-discovers model listings, pricing and capabilities from OpenAI-compatible API hosts, normalizes them, and emits ready-to-use model configs for dsh.
★ 1
↓ 5/wk
MIT
TypeScript
Sep 29, 2026
dsh plugin --profile web add model-catalogby TikaFlow
Auto-fills reasoning-efforts, context windows, output limits and image modality for models from unofficial (custom) providers, with data from models.dev. Also provides setting cards to control plugin'
★ 25
MIT
TypeScript
Nov 17, 2026
dsh plugin --profile web add dsh-model-fix