li
b5d9fd21b0
fix(ratelimit): 图片模型被 Codex 文本端点拒绝时不再写模型冷却
gpt-image-* 被误发到 /v1/chat/completions 或 /v1/responses 时,Codex 会稳定
返回 400 codex_plan_gated_model。HandleUpstreamModelNotFound 把它当成账号能力
缺失,给每个账号写 30 分钟 model_rate_limits 冷却。failover 走完整个号池后,
池内每个账号都冷却了该图片模型,于是后续走对端点的 /v1/images/generations
请求也一并 503 no available accounts。
在 codex plan-gated 分支里对图片模型提前返回:仍然 failover 掉本次尝试,
但跳过 SetModelRateLimit 写入,不把号池对正确的生图请求整体下线。
Fixes #4828
2026-08-07 20:41:34 +08:00
..
2026-08-04 13:41:47 +00:00
2026-08-01 22:39:33 +08:00
2026-08-07 20:41:34 +08:00
2026-08-01 22:39:31 +08:00
2026-07-31 21:20:32 +08:00
2026-07-18 00:11:18 +08:00
2026-07-09 14:06:57 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-07-01 14:25:46 +08:00