sanshanya/better-model-provider 预览 preview

sanshanya/better-model-provider

DeepSeek Harness的按模型能力声明:推理努力级别(wire拼写)+请求模态(视觉),适用于兼容OpenAI的提供商。设置部分,零运行时harness依赖,无YAML。

Project Overview项目介绍

better-model-provider is a DeepSeek Harness plugin that adds a Model capabilities page in the settings sidebar. It edits reasoningEfforts, input modalities, and token capacities per model—declarations on custom routes, sparse overrides on official-catalog routes. Use it to expose reasoning levels, enable image input, or tune context windows and max tokens. Note: API keys and route lifecycle remain on the official Models page, and built-in dedicated-adapter models do not appear here.

better-model-provider 是 DeepSeek Harness 插件,在设置侧栏提供"模型能力"页。核心能力是按行编辑自定义模型的 reasoningEfforts、输入模态与 token 上限(写在自己的路由声明中),以及为官方目录路由配置稀疏覆盖。适用于需要解锁推理档位、为模型开启图像输入或调整上下文容量的场景。注意:API 密钥与路由生命周期仍需在官方 Models 页管理;内置专用适配器模型不显示于此。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:sanshanya/better-model-provider

sanshanya/better-model-provider 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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.

中文

Editing one model row

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#master

CI rebuilds and republishes ready-built artifacts to the master branch on every green main push, so this path never builds locally. Installing the default branch (github:sanshanya/better-model-provider) builds from source and prints 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

  1. Configure the provider and API key on the official Models page first — keys and route lifecycle are always managed there; this page does not repeat them.
  2. Expand a model row and edit its capabilities:
    • Reasoning effort: pick Custom, check the levels you need; to offer "off" too, check off (its wire value may stay blank).
    • Vision models: check image under input modalities — otherwise sending an image to this model gets refused.
    • Capacities: K/M spelling reads best (380K, 1M). Tap Apply and the change takes effect at once.
  3. Official-catalog routes: tap Manage official models and edit. Every change here stores only the difference from the official default — everything else keeps following catalog updates; Reset to official defaults undoes all of one model's edits at once.
  4. Manage official providers (N) unfolds installed-but-unconfigured routes: pick one, apply the first change, and the route comes into being (its API key still goes on the official page).

Dedicated-adapter apps (built-in DeepSeek / OpenAI Codex) declare their capabilities on their own settings pages and never appear here.

Compatibility

We declare compatibility with the whole dsh 0.1.x line: contract @deepseek-ai/dsh-api-remotes >=0.1.0-rc.7 <0.2.0, real-harness lanes verified on rc.7, rc.8, 0.1.1-rc.2, and 0.1.2-alpha.1/alpha.2 — a daily CI canary re-proves both published channels (latest and alpha) against their current npm dist-tags. Surfaces outside the contract degrade silently. Development gates, live lanes, and invariants: see CONTRIBUTING.md.

License

MIT

上一个 Prev dsh-skill-manager-ytxue 下一个 Next dsh-turn-fold