klarkxy/dsh-editor--packages-dsh-model-center ↗★ 11

@klarkxy/dsh-model-center

配置模型分级、服务商连接与AI调用限制。 适合需要精细化管理模型调用策略、绑定不同模型层级的系统管理员。

套件
@klarkxy/dsh-model-center
相容性
待驗證
Cordis 依賴範圍
^4.0.3
版本
0.1.2
授權
NOASSERTION
最近更新
2026年9月24日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:klarkxy/dsh-editor#45bfe9acd47ac14d63b602f1f007870fc8c8d7ed&path:packages/dsh-model-center

@klarkxy/dsh-model-center

简体中文

Model Center for DSH. Starts enabled and remains independently switchable.

License

Install

Requires Node.js ≥22 and DSH 0.1.7-alpha.1.

dsh plugin --profile web add @klarkxy/dsh-ai-services
dsh plugin --profile web add @klarkxy/dsh-model-center

AI policy is stored by @klarkxy/dsh-ai-services. Provider credentials stay in native DSH settings. When Model Center is absent or disabled, tier-based calls use Chat or the host default directly; saved tier bindings remain intact.

Use

Settings → 模型中心 (or the host Models page when the editor supplies that seat).

  • Model routing opens with four tiers: Quick, Chat, Thinking, and Fantasy. These correspond to Haiku, Sonnet, Opus, and Fable respectively, while allowing models from any provider. Fantasy is reserved for explicit user selection and is never a built-in plugin default. Each tier configures a model and reasoning effort; unconfigured tiers inherit Chat. Capability defaults can follow any tier or use a separate model and effort. Auxiliary capabilities can also follow the current session.
  • Runtime owns concurrency, timeout, input/output caps, and retry attempts.
  • Providers only manages connections and available models.
  • Tier changes apply to capabilities that follow them. New conversations read the saved default; existing conversation selections stay unchanged.

Develop

pnpm --filter @klarkxy/dsh-model-center typecheck
pnpm exec vitest run packages/dsh-model-center/src
pnpm --filter @klarkxy/dsh-model-center build

The Editor preinstalls this feature enabled. In the Editor, use Settings → Plugins to switch it without restarting. Standalone DSH must load @klarkxy/dsh-ai-services before this package; installation or removal may require a restart when the host asks for one.