continue icon indicating copy to clipboard operation
continue copied to clipboard

🐛 Azure OpenAI /responses endpoint not supported for GPT-5 Codex models

Open saharghya opened this issue 11 months ago • 5 comments

Before submitting your bug report

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

  1. Create an Azure OpenAI GPT 5 Codex deployment (e.g. azr-dev-gpt-5.1-codex-mini)
  2. In config.yaml, set provider: azure, or openai with apiBase pointing to Azure endpoint
  3. Try running Continue with this model/endpoint
  4. Observe the OperationNotSupported error when using /responses
  5. 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.

saharghya avatar Dec 11 '25 19:12 saharghya

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 store is 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/responses endpoint
  • #8157 - Support the Responses API for OpenAI API compatible
  • #5730 - Need support for /v1/responses endpoint (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)

continue avatar Dec 11 '25 19:12 continue

Also experiencing this issue with gpt-5.2-codex running in Azure Foundry, with apiBase: https://example.cognitiveservices.azure.com/openai/responses

jedwards-tcbrands avatar Feb 19 '26 22:02 jedwards-tcbrands

I tried to deploy a LiteLLM as a proxy to walk around this issue. hope helpful.

findix avatar Feb 27 '26 03:02 findix

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.

github-actions[bot] avatar May 29 '26 02:05 github-actions[bot]

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.

github-actions[bot] avatar Jun 10 '26 02:06 github-actions[bot]