better-model-provider
模型与数据sanshanya/better-model-provider
为 DeepSeek Harness 提供按模型能力声明:推理努力级别和请求模态(如视觉),支持 OpenAI 兼容提供商,并带有设置界面。
- ai-providers
- deepseek
- deepseek-harness
- dsh-plugin
- reasoning-effort
README
better-model-provider
Per-model capability editing for DeepSeek Harness: reasoning-effort levels (with wire spellings), input modalities, and token capacities — declarations on your own routes, sparse overrides on official-catalog routes.
Custom models: edit declarations. Official models: edit overrides. Provider configuration remains official.

Why
Two per-model fields stayed YAML-only: reasoningEfforts and input. Until declared, the picker shows no effort control and image sessions refuse the model (... does not accept image input). This page edits them plus contextWindow / maxTokens — one row fully configures one model.
Install
dsh plugin --profile web add github:sanshanya/better-model-provider
GitHub installs print one pnpm allowBuilds key to add, then rerun add. A local link: install must npm install && npm run build first. Restart dsh web, and the Settings sidebar gains Model capabilities.
dsh plugin --profile web rm better-model-provider
Use
- Configure the provider + API key on the official Models page first; keys and lifecycle never move here.
- Expand a row: pick Custom under reasoning effort, check the levels (also check
off, blank wire →null, if Off should exist); checkimageunder input modalities for vision models; fill capacities in K/M spelling (380K,1M). Apply — the picker and image admission follow immediately. - Official-catalog routes: Manage official models — each field writes one sparse
modelOverridesleaf; official capacities stay unless overridden; reasoning wire spellings are never guessed; Reset to official defaults lifts exactly what you overrode. - Manage official providers (N) lists installed catalog routes; pick one and the first override you apply materializes its profile.
Dedicated-adapter apps (built-in DeepSeek / OpenAI Codex) declare capabilities in their own adapter code and never appear here.
Compatibility
Contract line @deepseek-ai/dsh-api-remotes ^0.1.0-rc.7 (verified against the published harness); surfaces outside the contract degrade silently. Development gates, live lanes, and invariants: see CONTRIBUTING.md.
License
MIT