ChaoYuZhang001/dsh-auto-router ↗★ 0

@chaoyuzhang/dsh-auto-router

Configurable Auto model routing tier for DeepSeek Harness 适合需按任务复杂度自动分流模型的用户;需先配置目标 provider 与模型 ID。

패키지
@chaoyuzhang/dsh-auto-router
호환성
미검증
Harness peer 범위
^0.1.0-rc.7
Cordis peer 범위
^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.