Spaces:
Running

RayMelius Claude Sonnet 4.6 commited on
Commit
9b3bd67
Β·
1 Parent(s): 891d877

Fix Gemini quota circuit-breaker: detect 'quota' in 429 body

Browse files

Gemini sends retry-after:5 even for daily quota exhaustion, so the
old 'wait > 30' check never fired. Now detect 'quota' in the body
and circuit-break for 8 hours, stopping the retry loop immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

1 file changed +16 -8
src/soci/engine/llm.py+16-8