Model fallback
模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。From its SKILL.md
npx -y skills add aAAaqwq/AGI-Super-Team --skill model-fallbackAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, 316 tokens by cl100k_base, as published. Nobody here has run it
模型自动降级与故障切换
- Author: Daniel Li
- Copyright © Daniel Li. All rights reserved.
当使用此技能
- 模型请求失败
- API 超时
- 达到速率限制
- 配额耗尽
- 需要确保服务连续性
工作原理
- 监控: 检测模型请求状态
- 判断: 识别失败类型(超时/限额/错误)
- 切换: 自动降级到备用模型
- 重试: 失败请求自动重试
- 恢复: 主模型恢复后自动切回
多供应商支持
- 优先级配置
- 跨供应商故障转移
- 智能负载均衡
错误类型
- 超时: 切换到更快模型
- 限额: 切换到有配额模型
- 错误: 切换到不同供应商
触发词
- "模型降级"
- "自动切换"
- "模型故障"
- "API 失败"
What ships with it: 5 files
19.9 KB alongside SKILL.md, 3 of them executable
scripts/
- auto-switch-handler.shruns5.0 KB
- model-error-wrapper.shruns4.4 KB
tests/
- test-error-handling.shruns1.6 KB
- INSTALL.md2.4 KB
- README.md6.5 KB