feat(google-agy): migrate to retrieveUserQuotaSummary API#144
Open
anthonyhaussman wants to merge 1 commit into
Open
feat(google-agy): migrate to retrieveUserQuotaSummary API#144anthonyhaussman wants to merge 1 commit into
anthonyhaussman wants to merge 1 commit into
Conversation
Switch from per-model retrieveUserQuota to grouped retrieveUserQuotaSummary endpoint. The new API returns model families (e.g. "Gemini Models", "Claude and GPT models") with weekly/5h buckets, eliminating client-side model name parsing and aggregation. Add rankOverride/groupSortOverride fields for explicit intra-group and inter-group ordering. Filter disabled buckets before display. Merge summary groups across accounts keeping minimum remainingFraction. Assisted-by: GLM 5.1
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
Following the last release of opencode-agy-auth, switch from per-model retrieveUserQuota to grouped retrieveUserQuotaSummary endpoint.
The new API returns model families (e.g. "Gemini Models", "Claude and GPT models") with weekly/5h buckets, eliminating client-side model name parsing and aggregation.
Add
rankOverride/groupSortOverridefields for explicit intra-group and inter-group ordering.Filter disabled buckets before display.
Merge summary groups across accounts keeping minimum remainingFraction.
New display:
Linked Issue
Improve the display of
opencode-agyGoogle AntiGravity quota to be in accordance with the Antigravity client.OpenCode Validation
1.17.10Quality Checklist
pnpm run typecheckpnpm testpnpm run buildREADME.mdandCONTRIBUTING.mdwhen applicable)contributing/provider-template/or explained why the template does not apply.tstemplate incontributing/provider-template/and verifiedREADME.mdagainstsrc/lib/provider-metadata.ts(authentication/authFallbacks) and provider auth resolver/diagnostics behavior