11.3 模型回退链路与错误分流
11.3.1 回退目标:连续性优先但要可解释
11.3.2 规则设计:按顺序分流
flowchart TD
req["模型调用请求"] --> p["primary: openai/gpt-5.2"]
p -->|"成功"| ok["正常返回"]
p -->|"限流/失败"| f1["fallback 1: openai/gpt-5-mini"]
f1 -->|"成功"| ok
f1 -->|"失败"| f2["fallback 2: anthropic/claude-sonnet-4-5"]
f2 -->|"成功"| ok
f2 -->|"全部耗尽"| degrade["降级响应 + 告警"]
style p fill:#e6f2ff,stroke:#66b2ff
style f1 fill:#fff5e6,stroke:#ffb347
style f2 fill:#ffece6,stroke:#ff7a5911.3.3 验证方法:故障注入加日志对账
最后更新于
