mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 06:12:10 +03:00
The #6216 branch used 'status >= 500', so a 503 on a per-model-quota / openai-compatible provider returned cooldownMs 0 — no model lockout AND no connection cooldown — hot-looping the failing upstream and breaking the resilience-http-e2e 'priority combo falls back on 503' guard on the release PR (the request after a 503 hit the same primary again). #6216's OWN unit contract pins the narrow behavior ('Gemini 503 should NOT skip cooldown', combo-provider-cooldown-sibling.test.ts) but computes the condition inline instead of exercising auth.ts. Code aligned to the tested contract: status === 500 skips (intermittent, not model-specific); 502/503/504 keep the pre-#6216 model-lockout path. Validated: the failing integration test flips red -> green locally (19s, deterministic before).