DeZhou123/dsh-model-orchestrator ↗★ 1

dsh-model-orchestrator

两级模型调度:先在模型层选最优模型,再在渠道层选该模型的最佳渠道;失败先换渠道再换模型,并有偏好模式(锁定一个模型,用尽所有渠道后才降级并提醒)。实时显示额度/健康/用量。 适合需要多模型多渠道高可用调度,并监控额度健康度的用户。

Package
dsh-model-orchestrator
Compatibility
Unverified
Version
2.0.0
License
MIT
Last updated
Oct 19, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DeZhou123/dsh-model-orchestrator

配置

写在 profile 的 cordis.patch.yml(优先级最高),或在面板里改(存到 $DSH_HOME/model-orchestrator/overrides.json)。 补丁层里显式写过的键会盖过面板。

键默认说明
enabledtrue总开关。
modeautoauto / prefer / manual / off。
preferModel / preferProvider''偏好模型(家族 id、模型 id 或 provider/model)与可选渠道限制。
preferFallbackauto偏好不可用时的模式:auto / manual / off。
preferNotifytrue暂停/恢复时发桌面通知。
preferAutoResumetrue渠道恢复后自动恢复偏好。
preferFollowSelectiontrue选择器改选时同步改偏好模型。
strategybalancedquality / balanced / economy / speed。
deny / allow[]额外屏蔽 / 放行的模型(id 或 provider/model)。
denyProviders[]整条渠道排除。
maxSwitchesPerStep / maxSwitchesPerTurn3 / 12同一步/同一轮最多自动切几次。
requestRepeatThreshold2同一渠道在窗口内连续拒绝几次后暂停该模型(1–10)。
requestRepeatWindowMs600000上面那个「连续」的时间窗口。
requestRepeatBlockMs1800000连续被拒后暂停多久(0 = 只换渠道不暂停)。
proactiveSwitchtrue冷却中的渠道直接跳过,而不是等它。
escalateOnFailuretrue失败后优先换到智力不低于失败模型的模型。
turnTokenBudget0单轮输出 token 预算,超出后切省 token 档;0 关闭。
longContextThreshold120000超过这个 prompt 规模就只考虑长上下文模型。
latencyGateMs10000首字达到这个值时速度项为 0.5;0 关闭。
anchorBonus0.04保持当前渠道的加分(只影响渠道层,不参与模型比较)。
switchMargin / laneSwitchMargin0.04 / 0.05换模型 / 换渠道的粘滞阈值。
userChoiceTtlMs1800000手动选择器改动被尊重的时长(自动模式,翻倍阈值)。
routeSubagentsfalse是否也路由子代理会话(默认让子代理自己的模型选择生效)。
reasoningEffortautoauto(按策略)/ preserve(能保留就保留)/ 具体 effort。
channelData / freeModelDatatrue是否读取渠道面板账本 / 免费车道探测。
catalogRefreshMs / channelDataRefreshMs120000 / 30000模型清单 / 渠道数据的刷新间隔。
modelInfoTtlMs21600000模型元数据缓存时长。
usageUnitTokens2000000用量项的参考规模。
reportPath''启动时自动导入这份报告。

旧键兼容:pinProvider/pinModel 会被折叠成 preferModel/preferProvider,并把 auto 改为 prefer。