Skip to content

fix(antigravity): bump client version to 1.25.0 for gemini-3.1 model access#2343

Open
manaporkun wants to merge 1 commit intosipeed:mainfrom
manaporkun:fix/antigravity-version-string
Open

fix(antigravity): bump client version to 1.25.0 for gemini-3.1 model access#2343
manaporkun wants to merge 1 commit intosipeed:mainfrom
manaporkun:fix/antigravity-version-string

Conversation

@manaporkun
Copy link
Copy Markdown
Contributor

Summary

  • Bumps antigravityVersion from 1.15.8 to 1.25.0 in the Antigravity provider
  • Without this, Google's Cloud Code Assist API rejects newer models (gemini-3.1-pro-low, gemini-3.1-flash-lite, etc.) — the model itself responds with "Gemini 3.1 Pro is not available on this version. Please upgrade to the latest version."
  • The API checks the User-Agent header (antigravity/<version>) and gates model access behind minimum client versions

Root cause

pkg/providers/antigravity_provider.go:24 — the version string 1.15.8 is too old for gemini-3.1 models. Bumping to 1.25.0 (matching current Antigravity IDE releases) resolves the issue.

Test plan

  • Verified gemini-3.1-pro-low returns "not available" with version 1.15.8
  • Verified gemini-3.1-pro-low works correctly with version 1.25.0 (tested via direct API call and patched binary)
  • gemini-3-flash and other existing models continue to work

🤖 Generated with Claude Code

…access

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 4, 2026 23:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Antigravity (Google Cloud Code Assist) provider’s client version so requests identify as a newer antigravity/<version> client, which is required for access to newer Gemini 3.1 models.

Changes:

  • Bump antigravityVersion from 1.15.8 to 1.25.0 to satisfy the API’s minimum client version gating.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 21 to 25
antigravityDefaultModel = "gemini-3-flash"
antigravityUserAgent = "antigravity"
antigravityXGoogClient = "google-cloud-sdk vscode_cloudshelleditor/0.1"
antigravityVersion = "1.15.8"
antigravityVersion = "1.25.0"
)
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

antigravityVersion is only used for the Chat request’s User-Agent header, but other Antigravity API calls in this file (e.g., FetchAntigravityProjectID and FetchAntigravityModels) still send User-Agent: antigravity without a version. Given the API gates features/models based on the antigravity/<version> User-Agent, these endpoints may remain blocked or behave inconsistently. Consider centralizing a single versioned User-Agent value and using it for all Antigravity HTTP requests in this provider.

Copilot uses AI. Check for mistakes.
@sipeed-bot sipeed-bot bot added type: bug Something isn't working domain: provider labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: provider type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants