feat: add Gemini 3.1 Flash Lite model#9
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 10 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Both valid — fixed in
Tests added for both ( |
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…tches P2 cortexkit#7: fetchQuotaSummary used only options.endpoints[0] for every project attempt, so a 5xx on the primary endpoint permanently lost the request. Iterate the endpoint list per project attempt so a 500 or 429 on one endpoint falls through to the next — matches the legacy fetchers' failover convention. P2 cortexkit#8: aggregateQuotaSummary derived the pool from group.buckets[0] unconditionally, silently dropping the whole group when an unrecognized bucketId led the array. Use the first RECOGNIZED bucket for pool derivation so the recognized windows are kept. P2 cortexkit#9: modelCount parsed the raw description prose and counted non-comma / non-colon tokens, so the 'Models within this group:' prefix was counted as a model. Strip the prefix before splitting. P2 cortexkit#10: the windowed summary fetch and the gemini-CLI quota fetch ran sequentially — two 10s timeouts back-to-back, ~20s per account on modal open. Run them concurrently via Promise.all.
|
Valid — fixed in The leak was specific to the gemini-CLI path: that branch spread Worth noting for the record: the antigravity path and 1836/0 unit, 28/0 e2e, gates clean. |
Adds
gemini-3.1-flash-lite— the newest Flash Lite the Antigravity API serves.Verified against the live API
fetchAvailableModelslists it, and a realstreamGenerateContentreturns HTTP 200 echoingmodelVersion: "gemini-3.1-flash-lite"— it's a working model, not a placeholder. Metadata from the API: 1,048,576 context / 65,535 max output,API_PROVIDER_GOOGLE_GEMINI, non-thinking text model. (The API serves no 3.5/3.6 Flash Lite yet; 3.1 is the current Lite.)Changes
Mirrors the existing
gemini-3.6-flashwiring (commita8e4e28) for a lite text model:model-registry.ts— model definition, gemini flash quota group, id listtransform/model-resolver.ts— resolves as non-thinking (isThinkingModel: false), excluded from the tier-suffix header pathplugin/request.ts— 65,535 max output tokensconfig+ Pi catalog — selectable asgoogle/antigravity-gemini-3.1-flash-lite; exposed in the Pi providerNo thinking-tier or image handling (not applicable to a lite text model).
Verification
Note: branched off current
main, so the model lands in the pre-existing gemini flash quota group. If #8 (the two-pool quota rework) merges first, this collapses into the singlegeminipool on rebase — a one-line classification adjustment.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Adds
gemini-3.1-flash-liteas a text-only, non-thinking model (1,048,576 context / 65,535 max output). Fully wired across theopencodestack; resolves correctly on Antigravity andgemini-cliwithout tiers or preview, and is verified against the live API.New Features
antigravity-gemini-3.1-flash-litewith text-only limits; added to Antigravity model IDs and thegemini-flashquota group.gemini-3.1-flash-liteas non-thinking on Antigravity andgemini-cli, skipping-preview.maxOutputTokensto 65,535 with nothinkingConfig.google/antigravity-gemini-3.1-flash-litein thepiprovider;pinow derives input modalities from the registry to keep Flash Lite text-only.Bug Fixes
thinkingLevel/tierfields for Flash Lite on all paths, even when a tier suffix is present.Written for commit 7115635. Summary will update on new commits.