Skip to content

Opencode Github Agent with GitHub Copilot provider Throw AI_APICallError: Bad Request #3287

@dgarridoa

Description

@dgarridoa

Description

Hello

For some reason, the Opencode GitHub Agent with GitHub Copilot provider does not work. I followed the installation instruction explained here.

As you can see is able to find the copilot/gpt-5 model, therefore I dont think is an authentication problem:

https://github.com/dgarridoa/ragtube/actions/runs/18634091148/job/53122832766#step:3:88

Error summary:

error: {
    name: "UnknownError",
    data: {
      message: "AI_APICallError: Bad Request",
    },
  }
117692 |               }
117693 |             ])
117694 |           ]
117695 |         });
117696 |         if (result.info.role === "assistant" && result.info.error) {
117697 |           throw new Error(`${result.info.error.name}: ${"message" in result.info.error ? result.info.error.message : ""}`);

Locally, It does work.

OpenCode version

0.15.8

Steps to reproduce

  1. Install opencode github agent opencode github install
  2. Set Github Copilot as provider and pick a model
  3. Push opencode workflow
  4. Add GitHub App to the target repository
  5. Create an issue and add the /oc summarize comment.

Screenshot and/or share link

Image Image

Operating System

Omarchy 3.1.0

Terminal

Alacritty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions