Skip to content

fix: use tier cooldown for google one gemini 429#2502

Open
yangzc2004-bit wants to merge 1 commit into
Wei-Shaw:mainfrom
yangzc2004-bit:codex/gemini-google-one-429-cooldown
Open

fix: use tier cooldown for google one gemini 429#2502
yangzc2004-bit wants to merge 1 commit into
Wei-Shaw:mainfrom
yangzc2004-bit:codex/gemini-google-one-429-cooldown

Conversation

@yangzc2004-bit
Copy link
Copy Markdown

Summary

  • Treat Gemini google_one OAuth 429s with no explicit reset time as tier cooldowns instead of AI Studio/API-key daily quota resets.
  • Keep AI Studio/API-key fallback behavior unchanged.
  • Add a regression test for RESOURCE_EXHAUSTED + MODEL_CAPACITY_EXHAUSTED on Google AI Pro.

Tests

  • go test -tags unit ./internal/service -run 'TestHandleGeminiUpstreamError_GoogleOneCapacityExhaustedUsesTierCooldown|TestParseGeminiRateLimitResetTime'
  • go test -tags unit ./internal/service
  • git diff --check

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@yangzc2004-bit
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant