ChaoYuZhang001/dsh-auto-router ↗★ 0

@chaoyuzhang/dsh-auto-router

为 DeepSeek Harness 提供可配置的自动模型路由层级,按任务轻重选择模型。 适合需按任务复杂度自动分流模型的用户;需先配置目标 provider 与模型 ID。

套件
@chaoyuzhang/dsh-auto-router
相容性
待驗證
Harness 依賴範圍
^0.1.0-rc.7
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年8月20日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ChaoYuZhang001/dsh-auto-router

Configuration

Override the inserted auto-router row in a profile patch:

- id: auto-router
  config:
    providerId: auto
    displayName: My Auto Router
    targetProvider: my-openai-gateway
    tiers:
      light: fast-model
      medium: balanced-model
      heavy: reasoning-model
      code: coding-model
      vision: vision-model
    sticky: true
    mediumThreshold: 300
    heavyThreshold: 1200
    contextWindow: 262144
    defaultMaxTokens: 32768

The router registers providerId as its synthetic route and delegates to targetProvider. The target route must advertise the configured model IDs.

The package does not store, read, or transmit API keys. Credentials belong to the target provider's normal DSH settings and credentials configuration.