Skip to content

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

Closed as duplicate

Description

@PadishahIII

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 27, 2025
  2. PadishahIII commented on Nov 27, 2025

    @PadishahIII
    Author

    I re-authed to copilot but the error remains

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions