🐛 Azure OpenAI /responses endpoint not supported for GPT-5 Codex models
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows, Linux, macOS
- Continue version: latest (as of Dec 2025)
- IDE version: VSCode, JetBrains (varies)
- Model: Azure OpenAI GPT-5 Codex (e.g. stx-azr-dev-gpt-5.1-codex-mini)
- config:
- name: GPT 5.1 Codex Mini
provider: azure
model: azr-dev-gpt-5.1-codex-mini
apiBase: https://genai-poc-dev.openai.azure.com
apiKey: $AZURE_API_KEY
env:
deployment: azr-dev-gpt-5.1-codex-mini
apiType: azure-openai
apiVersion: 2025-04-01-preview
completionOptions:
maxTokens: 16384
Description
Azure-hosted GPT-5.1 Codex models cannot be used in Continue.dev because the /responses endpoint is only supported for the official OpenAI API base. Attempts to use models like azr-dev-gpt-5.1-codex-mini fail with OperationNotSupported errors.
Expected: Continue.dev should allow routing to Azure OpenAI /openai/responses endpoint for supported models. Actual: Error message
{"code":"OperationNotSupported","message":"The chatCompletion operation does not work with the specified model, gpt-5.1-codex-mini. 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."}
Current code restricts responses endpoint to https://api.openai.com/v1/ only:
protected shouldUseResponsesEndpoint(model: string): boolean {
const isOfficialOpenAIAPI = this. apiBase === "https://api.openai.com/v1/";
return isOfficialOpenAIAPI && isResponsesModel(model);
}
This blocks Azure-hosted GPT-5/Codex models from working with Continue IDE integrations.
To reproduce
- Create an Azure OpenAI GPT 5 Codex deployment (e.g. azr-dev-gpt-5.1-codex-mini)
- In config.yaml, set provider: azure, or openai with apiBase pointing to Azure endpoint
- Try running Continue with this model/endpoint
- Observe the OperationNotSupported error when using /responses
- Notice that the issue only occurs for non https://api.openai.com/v1/ apiBase endpoints
Log output
OperationNotSupported: The chatCompletion operation does not work with the specified model, gpt-5.1-codex-mini. Please choose different model and try again.
Current logs show attempted routing to chat/completions instead of /responses for Azure endpoints.
Related Issues
Found several related issues about Azure OpenAI, GPT-5 Codex, and the /responses endpoint:
GPT-5 Codex Issues:
- #9101 - Items are not persisted when
storeis set to false GPT-5.1-Codex - #9064 - issue 5.1 does not work with codex in vs code
Responses Endpoint Support:
- #7618 - No reasoning with GPT-5 via openAI provider - need support for
v1/responsesendpoint - #8157 - Support the Responses API for OpenAI API compatible
- #5730 - Need support for
/v1/responsesendpoint (closed due to inactivity)
Azure-specific Issues:
- #4967 - Azure OpenAI agent mode not supported
- #9009 - Bug: Anthropic provider fails with Azure AI Foundry endpoints (incorrect auth header)
Also experiencing this issue with gpt-5.2-codex running in Azure Foundry, with apiBase: https://example.cognitiveservices.azure.com/openai/responses
I tried to deploy a LiteLLM as a proxy to walk around this issue. hope helpful.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.