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
I'm trying to use gpt-5.1-codex and it works when I run opencode on my local machine, but when I try to run it on a gitlab ci pipeline with the same configurations (same opencode.jsonc and variables) it always fails with the error The chatCompletion operation does not work with the specified model, gpt-5.1-codex. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993. I also tried with gpt-5.2-codex but it has the same problem. I tried with opencode versions 1.1.23, 1.1.26 and 1.1.34. This is the opencode.jsonc I am using
This issue might be a duplicate of existing issues. Please check:
@ai-sdk/azure defaults to completions api instead of responses #9035: @ai-sdk/azure defaults to completions api instead of responses - This issue describes the exact same error message: "The chatCompletion operation does not work with the specified model, gpt-5.2-codex" when using Azure provider with codex models. The root cause is that the Azure provider is routing through chat-completions instead of the responses API that these models require.
Feel free to ignore if your specific case differs from the above.
Activity
github-actions commentedon Jan 23, 2026
This issue might be a duplicate of existing issues. Please check:
completionsapi instead ofresponses#9035: @ai-sdk/azure defaults tocompletionsapi instead ofresponses- This issue describes the exact same error message: "The chatCompletion operation does not work with the specified model, gpt-5.2-codex" when using Azure provider with codex models. The root cause is that the Azure provider is routing through chat-completions instead of the responses API that these models require.Feel free to ignore if your specific case differs from the above.
CezaryKlus commentedon Jan 27, 2026
I experience the same behavior when running from VS Code devcontainer
JoaoCP13 commentedon Feb 6, 2026
I’m having the same issue. I already tried everything. Is something wrong on the opencode.jsonc configuration?
github-actions commentedon Apr 8, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.