Skip to content

Azure provider: config.toml model changed after gpt-5.1-codex release, causing DeploymentNotFound errors #6670

@jgador

Description

@jgador

What version of the VS Code extension are you using?

0.4.40

What subscription do you have?

Azure OpenAI in Azure AI Foundry Models

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When using Codex with model_provider = "azure", Codex appears to rewrite my configured model = "gpt-5-codex" after the gpt-5.1-codex release. As a result, calls to Azure OpenAI start failing with DeploymentNotFound, even though the deployment exists and was previously working.

What steps can reproduce the bug?

  1. In Azure AI Foundry / Azure OpenAI, deploy gpt-5-codex.
  2. Configure Codex as shown above with model = "gpt-5-codex" and model_provider = "azure" and the rest of configuration following https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/codex?tabs=npm
  3. Use Codex in VS Code
  4. Observe that Codex fails with a 404 coming from Azure:

unexpected status 404 Not Found: {"error":{"code":"DeploymentNotFound","message":"The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."}}

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    azureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingextensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions