AL-spiritphoenix/dsh-auto-model0

dsh-auto-model

适用于 DeepSeek Harness 的自动模型选择插件:通过分类器调用将每轮对话路由至 V4 Flash 或 V4 Pro

AI 分析

核心用途是平衡任务处理质量与响应速度/成本。适合希望简单任务用快模型(Flash)、复杂任务自动切换到强模型(Pro)的智能路由用户。

套件
dsh-auto-model
版本
0.1.0
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AL-spiritphoenix/dsh-auto-model

Configuration

All fields are optional and default to the DeepSeek V4 pair:

KeyDefaultMeaning
providerdeepseek-officialProvider route the concrete requests are routed to.
modelautoVirtual model id shown and submitted; never dispatched.
providerNameDeepSeek(Auto)Selector group label.
nameAutoSelector model label.
description(built-in)Selector detail.
fastModeldeepseek-v4-flashModel for SIMPLE tasks.
slowModeldeepseek-v4-proModel for COMPLEX tasks.
classifierModelfastModelModel serving the classifier call.
classifierPrompt(built-in)Classifier system prompt.
classifierMaxTokens16Classifier output-token cap.
classifierTimeoutMs10000Classifier call deadline.
contextBudgetChars4000Maximum task characters fed to the classifier.
onClassifierErrorslowTarget 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