Could not use model "Gemini 3 Pro Preview" of Github copilot provider: "invalid request body" #3151

Closed
opened 2026-02-16 17:38:52 -05:00 by yindo · 1 comment
Owner

Originally created by @PadishahIII on GitHub (Nov 27, 2025).

Description

I'm using Github copilot provider's gemini-3 to write code, but it seems it's not able to call any tool, even with a simple "list dir" tool call, the TUI reports error: "invalid request body".
Show as below:

Image

OpenCode version

1.0.119

Steps to reproduce

  1. cd into an empty dir
  2. run opencode . and switch to copilot's gemini-3 model
  3. Send prompt "write a hello world in hello.go"

What I got:

Image

Screenshot and/or share link

https://opencode.ai/s/hXWfg5i2

Operating System

macOS 15.6

Terminal

alacritty

Originally created by @PadishahIII on GitHub (Nov 27, 2025). ### Description I'm using Github copilot provider's gemini-3 to write code, but it seems it's not able to call any tool, even with a simple "list dir" tool call, the TUI reports error: "invalid request body". Show as below: <img width="726" height="277" alt="Image" src="https://github.com/user-attachments/assets/d7f263e9-63c0-493b-afec-685d473c304c" /> ### OpenCode version 1.0.119 ### Steps to reproduce 1. cd into an empty dir 2. run `opencode .` and switch to copilot's gemini-3 model 3. Send prompt "write a hello world in hello.go" What I got: <img width="571" height="374" alt="Image" src="https://github.com/user-attachments/assets/2fa25418-122c-49d5-b45a-0b3c60f99bcb" /> ### Screenshot and/or share link https://opencode.ai/s/hXWfg5i2 ### Operating System macOS 15.6 ### Terminal alacritty
yindo added the opentuibug labels 2026-02-16 17:38:52 -05:00
yindo closed this issue 2026-02-16 17:38:52 -05:00
Author
Owner

@PadishahIII commented on GitHub (Nov 27, 2025):

I re-authed to copilot but the error remains

@PadishahIII commented on GitHub (Nov 27, 2025): I re-authed to copilot but the error remains
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3151