Skip to content

"The requested model is not supported." and "model gpt-5.1-codex is not accessible via the /chat/completions endpoint" for github copilot provider #4819

Closed

Description

@PadishahIII

Description

When I try to build using Github copilot's claude-sonnet-4.5 model, the error occur: "The requested model is not supported."

Image

But I've enabled this model following the endpoint in the error message:

Image

It's strange since I've used this model in opencode one or two weeks ago and it used to work fine.

And second, opencode says the 'gpt-5.1-codex' model is not accessible in github copilot, but it's present indeed:

Image

OpenCode version

1.0.119

Steps to reproduce

  1. run opencode and switch to github copilot's claude-sonnet-4.5
  2. send whatever prompt

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. github-actions commented on Nov 27, 2025

    @github-actions
    Contributor

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

    These issues relate to:

    1. Claude Sonnet 4.5 model errors with GitHub Copilot (similar to your first issue)
    2. GPT-5-Codex and GPT-5.1-Codex requiring the /responses API endpoint instead of /chat/completions (similar to your second issue)

    The underlying cause appears to be that GitHub Copilot's newer models (gpt-5-codex, gpt-5.1-codex) use the /responses API endpoint, but OpenCode is still trying to use the /chat/completions endpoint for them.

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

  3. PadishahIII commented on Nov 27, 2025

    @PadishahIII
    Author

    ok, i've fixed that according to #4626

  4. jomach commented on Feb 23, 2026

    @jomach

    Still same error now.

    Image Also tried mini
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