dsh pluginsEnglish
← 返回热门插件目录

模型重试备用策略插件

omdsh-dev/dsh-llm-fallbacks · 技能

An dsh plugin for role-based LLM retry&fallback strategy. 基于角色的模型重试备用策略插件

★ 4GitHub 星标
0分支
2026-08-15最近更新
TypeScript开发语言
MIT许可证

项目简介

dsh(DeepSeek Harness)的自动模型降级插件:当 root agent 或 subagent 的模型请求持续失败(重试耗尽、权限、配额超限、限流 429)时,按角色/模型 fallback 链自动切换 provider/model,当前 step/turn 在目标模型上继续完成——任务不因模型问题中断。

在 dsh 的设置文档(默认 $DSHHOME/settings.yaml)中添加 fallbacks: 分节:

角色是声明式实体:roles.list 存放角色卡(id/persona + chain/fallback),roles.rules 按 origin/provider/model 顺序匹配到已声明角色 id 或内置 inherit(首个命中即停)——未命中 → inherit → rootChain。只声明不写规则的角色永不命中。角色无 chain 无意义——设置卡拦截保存、启动时告警;请为每个声明角色配置 chain,或让规则直接引用内置 inherit。(手写 YAML 角色链缺省/为空不致命:fallback: inherit-root(默认)时空链仍按防御语义回退 rootChain;fallback: none 时空链无候选 → no-op 透传;两种情况都仅启动告警。)旧链键命名空间与角色兜底字段已删除(迁移表见 docs/configuration.md)。

安装命令

dsh plugin --profile web add github:omdsh-dev/dsh-llm-fallbacks
查看 GitHub 仓库 ↗返回热门插件目录