Skip to content

Antigravity: Gemini 3.1 Pro (high) fails with "Generation error" / "Request contains an invalid argument" #55

Description

@gildeshiro

Description

When using the Antigravity provider, Gemini 3.1 Pro (high) — which is offered as a default model in the Piebald model selector — fails immediately on the first message with a "Generation error". The backend log shows:

ERROR backend::services::title_generation: Auto title generation failed for chat 104:
Failed to generate title with LLM: Request contains an invalid argument.

Steps to reproduce

  1. Sign in to Antigravity provider in Piebald
  2. Select Gemini 3.1 Pro (high) from the model dropdown (it's offered by default)
  3. Send any message (e.g. "hello")
  4. Observe "Generation error" in the chat

Expected behavior

The model should respond normally, as it does in the Antigravity IDE itself.

What works / what doesn't

Model Status
Gemini 3 Flash ✅ Works
Gemini 3.1 Pro (low) ✅ Works
Gemini 3.1 Pro (high) ❌ Fails — "Request contains an invalid argument"

Hypothesis

Since Gemini 3.1 Pro (low) works fine but (high) does not, the issue may be:

  • A model ID mismatch in the Antigravity API mapping (e.g. the model ID sent for "high" doesn't match what the current Antigravity API expects)
  • Different API parameter requirements between the (high) and (low) variants (thinking config, safety settings, etc.)

Environment

  • Piebald v0.3.2 (Windows 11)
  • Antigravity provider (Google account OAuth)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions