Error using gpt-5.1-codex via Github Copilot #3008

Closed
opened 2026-02-16 17:38:14 -05:00 by yindo · 2 comments
Owner

Originally created by @weynars on GitHub (Nov 20, 2025).

Description

When trying to use gpt-5-codex with Github Copilot as the provider I get the following error:
model gpt-5-code is not accessible via the /chat/completions endpoint

OpenCode version

1.0.81

Steps to reproduce

  1. Connect to Github copilot
  2. Select gpt-5.1-codex via /models
  3. Try to send a message

Screenshot and/or share link

Image

Operating System

macOS

Terminal

iTerm2

Originally created by @weynars on GitHub (Nov 20, 2025). ### Description When trying to use gpt-5-codex with Github Copilot as the provider I get the following error: `model gpt-5-code is not accessible via the /chat/completions endpoint` ### OpenCode version 1.0.81 ### Steps to reproduce 1. Connect to Github copilot 2. Select gpt-5.1-codex via /models 3. Try to send a message ### Screenshot and/or share link <img width="569" height="159" alt="Image" src="https://github.com/user-attachments/assets/122e582b-0369-46a6-8440-01589f19b3a1" /> ### Operating System macOS ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:38:14 -05:00
yindo closed this issue 2026-02-16 17:38:14 -05:00
Author
Owner

@dklymenk commented on GitHub (Nov 20, 2025):

Duplicate of https://github.com/sst/opencode/issues/2758

@dklymenk commented on GitHub (Nov 20, 2025): Duplicate of https://github.com/sst/opencode/issues/2758
Author
Owner

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

i think it will be fixed tonight

@rekram1-node commented on GitHub (Nov 20, 2025): i think it will be fixed tonight
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3008