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

Open
opened 2026-02-16 17:42:15 -05:00 by yindo · 2 comments
Owner

Originally created by @ydemir on GitHub (Dec 30, 2025).

Originally assigned to: @rekram1-node on GitHub.

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
Originally created by @ydemir on GitHub (Dec 30, 2025). Originally assigned to: @rekram1-node on GitHub. ## 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 ```json { "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
yindo added the windows label 2026-02-16 17:42:15 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 30, 2025):

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

  • #4832: [BUG]: Gemini 3 Pro function calling fails - missing thoughtSignature support - Similar Gemini 3 issue related to API compatibility
  • #6244: Response terminates prematurely when using Gemini 3 via LiteLLM - Related Gemini 3 model issues with streaming/function calling
  • #6261: bug: multiple plugins registering auth for the same provider silently overwrite each other - Related to Antigravity auth conflicts with other plugins
  • #5793: [BUG]: client.app is undefined when passed to plugins - Plugin infrastructure issue affecting opencode-antigravity-auth
  • #6176: Claude extended thinking + tool use: signature not preserved in message history - Similar signature preservation issue affecting Antigravity

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

@github-actions[bot] commented on GitHub (Dec 30, 2025): This issue might be a duplicate of existing issues. Please check: - #4832: [BUG]: Gemini 3 Pro function calling fails - missing `thoughtSignature` support - Similar Gemini 3 issue related to API compatibility - #6244: Response terminates prematurely when using Gemini 3 via LiteLLM - Related Gemini 3 model issues with streaming/function calling - #6261: bug: multiple plugins registering auth for the same provider silently overwrite each other - Related to Antigravity auth conflicts with other plugins - #5793: [BUG]: client.app is undefined when passed to plugins - Plugin infrastructure issue affecting opencode-antigravity-auth - #6176: Claude extended thinking + tool use: signature not preserved in message history - Similar signature preservation issue affecting Antigravity Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 30, 2025):

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

@rekram1-node commented on GitHub (Dec 30, 2025): I think this is a bug with your plugin rather than opencode
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4001