Github Copilot provider requires different endpoint for gpt-5-codex #2762

Closed
opened 2026-02-16 17:37:08 -05:00 by yindo · 3 comments
Owner

Originally created by @DamianPereira on GitHub (Nov 10, 2025).

Description

Hi! I was trying to use the copilot provider for auth, using older models work, but using gtp5-codex results in:

model gpt-5-codex is not supported in this VS Code version. Please update it to version 1.104.1 or newer

Looking at other AI tools it looks like the endpoints needs to change to support this:
https://github.com/CherryHQ/cherry-studio/issues/10560

OpenCode version

1.0.55

Steps to reproduce

  1. Use Github Copilot auth
  2. Select gpt5-codex model
  3. Say Hi

Screenshot and/or share link

https://opencode.ai/s/Wf2uSeLH

Operating System

Mac OS 15.6.1 (24G90)

Terminal

Iterm2

Originally created by @DamianPereira on GitHub (Nov 10, 2025). ### Description Hi! I was trying to use the copilot provider for auth, using older models work, but using gtp5-codex results in: > model gpt-5-codex is not supported in this VS Code version. Please update it to version 1.104.1 or newer Looking at other AI tools it looks like the endpoints needs to change to support this: https://github.com/CherryHQ/cherry-studio/issues/10560 ### OpenCode version 1.0.55 ### Steps to reproduce 1. Use Github Copilot auth 2. Select gpt5-codex model 3. Say Hi ### Screenshot and/or share link https://opencode.ai/s/Wf2uSeLH ### Operating System Mac OS 15.6.1 (24G90) ### Terminal Iterm2
yindo added the bug label 2026-02-16 17:37:08 -05:00
yindo closed this issue 2026-02-16 17:37:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 10, 2025):

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

  • #2758: Reports same error about gpt-5-codex not being accessible via /chat/completions endpoint with GitHub Copilot provider
  • #2977: GPT-5-Codex over GitHub copilot does not work (closed) - mentions model uses new /responses API instead
  • #2778: GitHub Copilot's gpt-5-codex model endpoint compatibility issue (closed)
  • #2890: gpt-5-codex through GitHub Copilot provider returns API call error (closed) - author mentioned creating PR to use /responses endpoint for gpt-5* models

The core issue appears to be that gpt-5-codex requires the /responses endpoint instead of /chat/completions when using the GitHub Copilot provider, which is the same underlying problem reported in these previous issues.

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

@github-actions[bot] commented on GitHub (Nov 10, 2025): This issue might be a duplicate of existing issues. Please check: - #2758: Reports same error about gpt-5-codex not being accessible via /chat/completions endpoint with GitHub Copilot provider - #2977: GPT-5-Codex over GitHub copilot does not work (closed) - mentions model uses new /responses API instead - #2778: GitHub Copilot's gpt-5-codex model endpoint compatibility issue (closed) - #2890: gpt-5-codex through GitHub Copilot provider returns API call error (closed) - author mentioned creating PR to use /responses endpoint for gpt-5* models The core issue appears to be that gpt-5-codex requires the /responses endpoint instead of /chat/completions when using the GitHub Copilot provider, which is the same underlying problem reported in these previous issues. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

this was 2 fold:

  • 1 needed to update headers (fixed in next release)
  • 2 need to change endpoints, tracking here: #2758
@rekram1-node commented on GitHub (Nov 10, 2025): this was 2 fold: - 1 needed to update headers (fixed in next release) - 2 need to change endpoints, tracking here: #2758
Author
Owner

@DamianPereira commented on GitHub (Nov 10, 2025):

Sorry I could not find that ticket when I searched, thanks!

@DamianPereira commented on GitHub (Nov 10, 2025): Sorry I could not find that ticket when I searched, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2762