插件目录 / Developer / dsh-provider-auto
dsh-provider-auto
已验证 · 实测可装 icekale
功能简介
Automatically add reasoning-level controls to compatible DeepSeek Harness provider models
可用 — 实测通过,早期项目
Automatically add reasoning-level controls to compatible DeepSeek Harness provider models 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-provider-auto
Automatically adds reasoning-effort controls to compatible custom provider models in DeepSeek Harness.
What it does
@deepseek-ai/dsh-llm-pi-ai only shows a reasoning selector when a model declares reasoningEfforts. Custom OpenAI-compatible gateways often return model ids but no capability metadata. This plugin watches the llm-pi-ai settings section and fills the missing declaration for recognized reasoning models.
Defaults:
- Protocols:
openai-completions,openai-responses - Models:
gpt-5*,o1*,o3*,o4*, othero<number>*, andcodex* - Levels:
off,low,medium,high - Exclusions: image, audio, embedding, moderation, and reranking models
- Existing
reasoningEffortsdeclarations are never overwritten
The plugin updates the persisted llm-pi-ai section, so DSH's native model picker and request path remain authoritative.
Install
Install directly from GitHub into the Web profile:
dsh plugin --profile web add github:icekale/dsh-provider-auto
Restart dsh web once after installation. Later provider/model changes are handled live through the settings service.
To remove it:
dsh plugin --profile web remove dsh-provider-auto
Provider configuration
Add providers from the DSH Models page, or edit ~/.dsh/settings.yaml:
llm-pi-ai:
providers:
one2api:
baseURL: https://one2api.top/v1
api: openai-completions
apiKeyEnv: ONE2API_API_KEY
models:
- id: gpt-5.6-sol
name: gpt-5.6-sol
- id: gpt-image-2
name: gpt-image-2
The plugin adds this only to gpt-5.6-sol:
reasoningEfforts:
off: null
low: low
medium: medium
high: high
Plugin configuration
Override the plugin row in ~/.dsh/profiles/web/cordis.patch.yml when a gateway uses different model names or wire values:
- id: provider-auto
config:
api:
- openai-completions
- openai-responses
modelPattern: '^(gpt-5|o[0-9]|codex|my-reasoner)'
nonTextPattern: '(image|audio|embedding|rerank)'
efforts:
off: null
low: low
medium: medium
high: high
A provider that uses different wire values can map them explicitly:
- id: provider-auto
config:
efforts:
off: null
low: lite
medium: standard
high: max
Limits
This plugin does not implement provider protocols or authentication. DSH still supports only protocols available through its installed adapters. Model capability discovery is name-based because OpenAI-compatible /models endpoints generally do not report reasoning levels. For an exceptional model, declare reasoningEfforts manually; the plugin preserves it.
Development
npm test
Requires Node.js 22 or newer.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-provider-auto」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:icekale/dsh-provider-auto Headless(CLI)profile:
dsh plugin --profile headless add github:icekale/dsh-provider-auto 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。