Repository navigation
feat(antigravity): adapt to latest models & quota system (add Gemini 4 Argon, 3.8 Flash, Claude 5.5, remove Gemini Pro) | 适配最新模型与配额体系 - #2915
Open
Chain813 wants to merge 13 commits into
Conversation
… Argon and remove Gemini Pro
…g with argon and claude 5.5
… and latest models
This branch has not been deployed
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 / 概述
Adapt to the latest Google Antigravity model updates and quota system architecture:
(Medium),(High),(Thinking)).适配最新版 Google Antigravity 的模型变动与配额体系:
(Medium)、(High)、(Thinking))。Key Changes / 主要改动
1. Model Definitions & Display Name Sanitization / 模型定义与名称清洗
gemini-4-argon,gemini-3.8-flash-high,claude-opus-5-5-medium,claude-sonnet-5-5-medium, andgpt-oss-120b-medium..replace(/\s*\([^)]*\)/g, '').trim()acrossantigravityModels.tsandmodelNames.ts.antigravityModels.ts与modelNames.ts中规范收录上述新模型,并加入全局去括号清洗逻辑,保持 UI 简洁易读。2. Group Strategy Restructuring / 分组策略重构
Gemini Pro(g3_pro) default group.Gemini 4 Argon(g4_argon) group to independently track itsGemini 4 Argon Weekly Limitquota window and enable precise auto-switching.Gemini 4 Argon,Gemini Flash, andClaude.cockpit-core/account.rs,src-tauri/account.rs,group_settings.rs, andgroupService.ts.Gemini Pro分组;为拥有独立周限额的Gemini 4 Argon新建独立的g4_argon分组;精简并对齐 Rust 核心库、Tauri 运行时与前端的 3 大核心分组。3. Quota Capture & Presentation / 配额解析与卡片呈现
quota.rsto includeargonandgptmodels (if name.contains("gemini") || name.contains("claude") || name.contains("argon") || name.contains("gpt")).platformAccountPresentation.tsto cleanly matchargonWeekly(argon:weekly,gemini-argon-wtu-weekly) and sanitize quota card labels.quota.rs过滤器确保正确捕获 Argon 和 GPT 配额;更新卡片展示层支持 Argon 独立周限额条。Verification / 验证
npm run typecheckpassed with 0 errors.node --import tsx src/presentation/antigravityQuotaPresentation.test.tspassed (11/11 tests passing, covering name sanitization and Argon weekly matching).npm run typecheck(tsc --noEmit)0 错误、0 警告。