mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-27 00:04:32 +00:00
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