Files
sub2api/backend/internal/handler
r266-techandClaude Opus 5.5 df3c428142 fix(openai): fail over standalone alpha search on API-key upstream 400
Some OpenAI-compatible relays reject the standalone Codex search endpoint
with HTTP 400 while serving /v1/responses normally. The 400 was passed
straight to the client, so search failed even when another account in the
group could serve it.

For API-key accounts, a 400 from /v1/alpha/search now fails over to the
next eligible account without account-health side effects or same-account
retries. When failover is exhausted the last upstream status and body are
returned unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:24:35 +09:00
..
2026-02-02 22:13:50 +08:00