Fix usage parameters for Codex family models on the Copilot API #3336

Closed
opened 2026-02-16 17:39:41 -05:00 by yindo · 6 comments
Owner

Originally created by @Msouza91 on GitHub (Dec 5, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I tried using new 5 codex models on opencode, but it seems to be using some different endpoint to interact with the API, when I try to use these models I always get the same error:

model gpt-5.0-codex is not accessible via the /chat/completions endpoint
model gpt-5.1-codex-mini is not accessible via the /chat/completions endpoint

OpenCode version

0.15.31

Steps to reproduce

  1. Start opencode
  2. Select any gpt5 or 5.1 codex models.
  3. Get the aforementioned error message.

Screenshot and/or share link

Fail on opencode

Image Image

5.1-codex-mini working on Zed

Image

Operating System

Ubuntu 24.04

Terminal

Ghostty

Originally created by @Msouza91 on GitHub (Dec 5, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I tried using new 5 codex models on opencode, but it seems to be using some different endpoint to interact with the API, when I try to use these models I always get the same error: `model gpt-5.0-codex is not accessible via the /chat/completions endpoint` `model gpt-5.1-codex-mini is not accessible via the /chat/completions endpoint` ### OpenCode version 0.15.31 ### Steps to reproduce 1. Start opencode 2. Select any gpt5 or 5.1 codex models. 3. Get the aforementioned error message. ### Screenshot and/or share link **Fail on opencode** <img width="965" height="298" alt="Image" src="https://github.com/user-attachments/assets/882bec28-2c0f-42cf-aa1e-8430308c6388" /> <img width="1146" height="239" alt="Image" src="https://github.com/user-attachments/assets/29fb020d-f373-44a0-b2d6-e4af25ab0310" /> **5.1-codex-mini working on Zed** <img width="639" height="264" alt="Image" src="https://github.com/user-attachments/assets/37c69903-0edd-412d-8767-849c3110835f" /> ### Operating System Ubuntu 24.04 ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:39:41 -05:00
yindo closed this issue 2026-02-16 17:39:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 5, 2025):

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

  • #4445: Using GPT 5.1 Codex via OpenAI fails on the 2nd request (related Codex model failure)
  • #2941: gpt-5-codex failure with reasoning item handling
  • #2966: GPT-5-codex issues in Zero Data Retention organizations

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

@github-actions[bot] commented on GitHub (Dec 5, 2025): This issue might be a duplicate of existing issues. Please check: - #4445: Using `GPT 5.1 Codex` via OpenAI fails on the 2nd request (related Codex model failure) - #2941: gpt-5-codex failure with reasoning item handling - #2966: GPT-5-codex issues in Zero Data Retention organizations Feel free to ignore if none of these address your specific case.
Author
Owner

@OpeOginni commented on GitHub (Dec 5, 2025):

@Msouza91 What version of OpenCode are you on? Could you try upgrading?

Just saw you are on 0.15.31, are you able to upgrade?

@OpeOginni commented on GitHub (Dec 5, 2025): @Msouza91 What version of OpenCode are you on? Could you try upgrading? Just saw you are on `0.15.31`, are you able to upgrade?
Author
Owner

@rekram1-node commented on GitHub (Dec 5, 2025):

if you upgrade to latest this is fixed

@rekram1-node commented on GitHub (Dec 5, 2025): if you upgrade to latest this is fixed
Author
Owner

@Msouza91 commented on GitHub (Dec 5, 2025):

Thanks for the quick response guys! I was used to my version auto updating so I assumed was on latest, but took the opportunity to move from the npm install to homebrew.
New version indeed solved it for me. Have a nice one!

@Msouza91 commented on GitHub (Dec 5, 2025): Thanks for the quick response guys! I was used to my version auto updating so I assumed was on latest, but took the opportunity to move from the npm install to homebrew. New version indeed solved it for me. Have a nice one!
Author
Owner

@rekram1-node commented on GitHub (Dec 5, 2025):

Yeah we did a big v0 -> v1 migration and intentionally haven't auto upgraded people to v1 since we have been ironing out stuff. We are going to turn on auto upgrading for v0 soon, all the ironing is done rlly

@rekram1-node commented on GitHub (Dec 5, 2025): Yeah we did a big v0 -> v1 migration and intentionally haven't auto upgraded people to v1 since we have been ironing out stuff. We are going to turn on auto upgrading for v0 soon, all the ironing is done rlly
Author
Owner

@rekram1-node commented on GitHub (Dec 5, 2025):

Also lmk if there is anything in v1 that you don't like, most people seem to like it a lot better

@rekram1-node commented on GitHub (Dec 5, 2025): Also lmk if there is anything in v1 that you don't like, most people seem to like it a lot better
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3336