Skip to content

[BUG]: Google Auth Gemini 3 models return 404 "Requested entity was not found" error #6454

Closed as not planned

Description

@ydemir

Description

When using Gemini 3 models (gemini-3-pro-preview, gemini-3-flash-preview) via Google OAuth (Antigravity auth), requests fail with:

Requested entity was not found.

[Debug Info]
Requested Model: gemini-3-pro-preview
Effective Model: gemini-3-pro-preview
Status: 404
Endpoint: https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse

Related Issue

This appears to be related to #4832 (thoughtSignature support), but the error message is different (404 instead of 400).

Environment

  • OS: Windows 11
  • OpenCode version: 1.0.213
  • Plugin: oh-my-opencode + opencode-antigravity-auth@1.1.2
  • Auth method: Google OAuth (Antigravity)

Configuration

{
  "google_auth": true,
  "agents": {
    "frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-preview" },
    "document-writer": { "model": "google/gemini-3-flash-preview" }
  }
}

Steps to Reproduce

  1. Configure opencode with opencode-antigravity-auth plugin
  2. Login with Google OAuth (opencode auth login → Google → Antigravity)
  3. Set any agent to use google/gemini-3-pro-preview or google/gemini-3-flash-preview
  4. Start opencode and try any command
  5. Get 404 error

Expected Behavior

Gemini 3 models should work via Google OAuth just like Gemini 2.5 models do.

Workaround

Using github-copilot/gemini-3-pro-preview works, but this consumes GitHub Copilot quota instead of Google quota.

Additional Context

  • google/gemini-2.5-pro and google/gemini-2.5-flash work fine via Google OAuth
  • The models appear in /models list under Google provider
  • Same Google account works fine with Gemini 2.5 models

Activity

  1. github-actions commented on Dec 30, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Dec 30, 2025

    @rekram1-node
    Contributor

    I think this is a bug with your plugin rather than opencode

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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