You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"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
Claude Sonnet 4.5 model errors with GitHub Copilot (similar to your first issue)
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.
Activity
github-actions commentedon Nov 27, 2025
This issue might be a duplicate of existing issues. Please check:
gpt-5-codexthrough GitHub Copilot provider returns API call error #2890:gpt-5-codexthrough GitHub Copilot provider returns API call errorThese issues relate to:
/responsesAPI 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
/responsesAPI endpoint, but OpenCode is still trying to use the/chat/completionsendpoint for them.Feel free to ignore if none of these address your specific case.
PadishahIII commentedon Nov 27, 2025
ok, i've fixed that according to #4626
jomach commentedon Feb 23, 2026
Still same error now.