fix(antigravity): route to daily-cloudcode host first to avoid 429 - #99
Open
mahdiwafy wants to merge 1 commit into
Open
fix(antigravity): route to daily-cloudcode host first to avoid 429#99mahdiwafy wants to merge 1 commit into
mahdiwafy wants to merge 1 commit into
Conversation
Gemini 3.6 Flash is only served from the daily Cloud Code host today. The production host (cloudcode-pa.googleapis.com) returns HTTP 429 RESOURCE_EXHAUSTED for the same OAuth accounts that work fine on daily-cloudcode-pa.googleapis.com, because Google maintains a separate quota bucket per host. Prepend the daily host to baseUrls (production stays as fallback for older models), so requests avoid the exhausted quota bucket.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://daily-cloudcode-pa.googleapis.comto AntigravitybaseUrls(production host stays as fallback).Why
The production host (
cloudcode-pa.googleapis.com) returns HTTP 429 RESOURCE_EXHAUSTED for the same OAuth accounts that work fine ondaily-cloudcode-pa.googleapis.com— Google keeps a separate quota bucket per host. Requests routed to the exhausted bucket fail for every model.Repro (same OAuth token, same account):
https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent→ 429https://daily-cloudcode-pa.googleapis.com/v1internal:streamGenerateContent→ 200Test Plan
ag/gemini-3.6-flash-highag/gemini-3.6-flash-high/ag/gemini-3.6-flash-medium/ag/gemini-3.6-flash-low/ag/gemini-3.1-pro-lowfrom 429 → 200 (live test)