mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 08:05:12 +00:00
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>