Skip to content

google-antigravity provider cannot use gemini-3.7-flash (adapter speaks /v1beta, gateway has it only on /v1internal Code Assist surface) #1906

Description

@chen-gdp

Client or integration

Direct HTTP/API client

Area

Google Antigravity provider adapter

Summary

google-antigravity provider cannot use gemini-3.7-flash. The adapter speaks /v1beta/models/{id}:generateContent, but the model exists only on the /v1internal:loadCodeAssist Code Assist surface (the one agy uses). Result: 404 Requested entity was not found when the model is set as the provider's default, and 400 "not supported when using Codex with a ChatGPT account" when requested by name (router sends it to the wrong provider because it isn't matched to antigravity).

Reproduction

  1. ocx provider edit google-antigravity --default-model gemini-3.7-flash
  2. curl -X POST http://127.0.0.1:10100/v1/chat/completions -d '{"model":"gemini-3.7-flash","messages":[{"role":"user","content":"hi"}]}'
  3. Observe 404 Requested entity was not found (upstream gateway: model only on the Code Assist surface).
  4. Alternatively request gemini-3.7-flash by name with the antigravity default restored to gemini-3.6-flash: the router matches no antigravity pattern and sends the request to the ChatGPT pool → 400 model is not supported when using Codex with a ChatGPT account.

Expected behavior

gemini-3.7-flash routes to google-antigravity and completes (same as agy native, where the model id is gemini-3.7-flash-high).

Version

opencodex 2.11.0

Operating system

macOS

Provider and model

google-antigravity / gemini-3.7-flash

Logs or error output

404: Requested entity was not found (v1beta path); 400: The 'gemini-3.7-flash' model is not supported when using Codex with a ChatGPT account (router fallback to ChatGPT pool).

Screenshots and supporting files

n/a

Redacted configuration

n/a

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolOAuth, credentials, Codex pool, quota, failover, plansbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions