-
[Switch Quota & Model Discovery UA to Official Hub Identity with Dynamic Versioning] (Ref #3665, Thanks to @wd2es7):
-
Switch Upstream Discovery UA to Hub Subclient: Fixed an issue where ULTRA accounts could not discover or route
gemini-4-argonmodels. Following community insights from @wd2es7 and reverse engineering of/Applications/Antigravity.app, verified that Google gates Argon availability based on the clientsubclient_typein the User-Agent (ide/vscodefilters out Argon yielding 35 models, whereashub/clireturns all 38 models including Argon). Consolidatedfetch_project_id,fetch_quota_with_cache, andfetch_quota_summaryto officialantigravity/hubUA. (Ref #3665, Thanks to @wd2es7) -
Dynamic Versioning & OS Fingerprint: Eliminated hardcoded version
2.17.0inconstants::USER_AGENT, replacing it withbuild_official_upstream_user_agent()which dynamically embeds the current app version (e.g.4.9.8-beta.5) and host architecture/platform (darwin/linux/windows and arm64/x64), ensuring upstream headers stay synchronized with releases. (Ref #3665) -
Official Model Catalog Alignment: Registered
gemini-4-argonin offline fallbackofficial_models.jsonaligned with upstreamminThinkingBudget: 32metadata. (Ref #3665)
-
Switch Upstream Discovery UA to Hub Subclient: Fixed an issue where ULTRA accounts could not discover or route
-
[Gemini 4 Argon Runtime Thinking Budget Safeguard & 400 Error Mitigation] (Ref #3665):
-
Runtime Minimum Thinking Budget Guard (≥ 1024): Upstream verification revealed that despite Google's metadata indicating
minThinkingBudget: 32, sending any non-zero thinking budget $< 1024$ togenerateContenttriggers400 Thinking level is unsupported: THINKING_LEVEL_MINIMAL. Added an inbound pipeline clamp ininbound.rsand alignedgemini-4-argon-lowinmodel_specs.rsto enforce a runtime floor of1024, completely preventing upstream 400 failures. (Ref #3665)
-
Runtime Minimum Thinking Budget Guard (≥ 1024): Upstream verification revealed that despite Google's metadata indicating
- [配额与模型发现 UA 切换为 Hub 官方标识与动态版本号注入] (Ref #3665, Thanks to @wd2es7):
- 配额刷新与模型探活 UA 全面切换为 Hub 标识: 解决 ULTRA 账号无法探知并调度
gemini-4-argon系列模型的问题。根据社区贡献者 (@wd2es7) 定位线索并经官方 Antigravity 桌面端二进制逆向及真实上游抓包验证,Google 服务端依客户端subclient_type执行白名单模型门禁(ide/vscode过滤 Argon 仅下发 35 个模型,而hub/cli下发包含 Argon 在内的 38 个完整模型目录)。将quota.rs中的fetch_project_id、fetch_quota_with_cache及fetch_quota_summary的请求头统一收敛为官方antigravity/hub规范。 (Ref #3665, Thanks to @wd2es7) - 动态集成应用版本与操作系统指纹: 废除
constants::USER_AGENT中硬编码的2.17.0版本号,重构为build_official_upstream_user_agent()动态读取当前项目实时版本(如4.9.8-beta.5)及运行平台(darwin/linux/windows 及 arm64/x64),确保上游请求标识与发布版本严格原子同步。 (Ref #3665) - 官方模型目录补齐与下限对齐: 在内置模型兜底表
official_models.json中补齐gemini-4-argon官方定义,对齐官方元数据标称的minThinkingBudget: 32。 (Ref #3665)
- 配额刷新与模型探活 UA 全面切换为 Hub 标识: 解决 ULTRA 账号无法探知并调度
- [Gemini 4 Argon 运行时思考预算下限保护与 400 报错防护] (Ref #3665):
- 执行层思考预算下限硬保护 (≥ 1024): 经上游真实请求验证,Google 官方对 Gemini 4 (Argon) 施加了未在元数据中公开的运行期限制——当
thinkingBudget < 1024(且非 0)时,上游接口将直接抛出400 Thinking level is unsupported: THINKING_LEVEL_MINIMAL。为此,在管线入站inbound.rs与档位计算model_specs.rs中将gemini-4-argon-low及客户端传入的低预算安全钳位在1024,彻底规避上游 400 崩溃。 (Ref #3665)
- 执行层思考预算下限硬保护 (≥ 1024): 经上游真实请求验证,Google 官方对 Gemini 4 (Argon) 施加了未在元数据中公开的运行期限制——当
Full Changelog: v4.9.8-beta.4...v4.9.8-beta.5