Skip to content
Back to skills

Model Fallback

ASecurity

模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。

  • 92 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 22, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add aAAaqwq/AGI-Super-Team --skill model-fallback --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Fallback?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Fallback
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-model-fallback-f6dce8c1/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-model-fallback-f6dce8c1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-fallback
description: 模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。
license: MIT
metadata:
  version: 1.0.0
  domains:
  - reliability
  - model-management
  - fault-tolerance
  type: system
author: Daniel Li
---

# 模型自动降级与故障切换

- Author: Daniel Li
- Copyright © Daniel Li. All rights reserved.

## 当使用此技能

- 模型请求失败
- API 超时
- 达到速率限制
- 配额耗尽
- 需要确保服务连续性

## 工作原理

1. **监控**: 检测模型请求状态
2. **判断**: 识别失败类型(超时/限额/错误)
3. **切换**: 自动降级到备用模型
4. **重试**: 失败请求自动重试
5. **恢复**: 主模型恢复后自动切回

## 多供应商支持

- 优先级配置
- 跨供应商故障转移
- 智能负载均衡

## 错误类型

- **超时**: 切换到更快模型
- **限额**: 切换到有配额模型
- **错误**: 切换到不同供应商

## 触发词

- "模型降级"
- "自动切换"
- "模型故障"
- "API 失败"

Files in this skill

  • INSTALL.md2.4 KB
  • README.md6.5 KB
  • SKILL.md1.2 KB
  • scripts/auto-switch-handler.sh5 KB
  • scripts/model-error-wrapper.sh4.4 KB
  • tests/test-error-handling.sh1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.