AL-spiritphoenix/dsh-auto-model ↗★ 0
dsh-auto-model
Auto model selection for DeepSeek Harness: routes each turn to V4 Flash or V4 Pro through a classifier call
AI 分析
核心用途是平衡任务处理质量与响应速度/成本。适合希望简单任务用快模型(Flash)、复杂任务自动切换到强模型(Pro)的智能路由用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AL-spiritphoenix/dsh-auto-modelドキュメント
README 全文を読む ↗Configuration
All fields are optional and default to the DeepSeek V4 pair:
| Key | Default | Meaning |
|---|---|---|
provider | deepseek-official | Provider route the concrete requests are routed to. |
model | auto | Virtual model id shown and submitted; never dispatched. |
providerName | DeepSeek(Auto) | Selector group label. |
name | Auto | Selector model label. |
description | (built-in) | Selector detail. |
fastModel | deepseek-v4-flash | Model for SIMPLE tasks. |
slowModel | deepseek-v4-pro | Model for COMPLEX tasks. |
classifierModel | fastModel | Model serving the classifier call. |
classifierPrompt | (built-in) | Classifier system prompt. |
classifierMaxTokens | 16 | Classifier output-token cap. |
classifierTimeoutMs | 10000 | Classifier call deadline. |
contextBudgetChars | 4000 | Maximum task characters fed to the classifier. |
onClassifierError | slow | Target when classification fails or returns an unknown token. |
Override them in the web profile's cordis.patch.yml:
- id: auto-model
config:
fastModel: deepseek-v4-flash
slowModel: deepseek-v4-pro
onClassifierError: slow