Skip to content

Considerations for Using the Azure OpenAI Services Provider #1552

@doggy8088

Description

@doggy8088

For the latest Node.js version, I was getting source code to build codex-cli folder. Here are some notes:

  1. ~/.codex/config.json

    The model must be your deployment name. It's not a "Model name".

    {
      "model": "codex-mini",
      "provider": "azure"
    }
  2. ~/.profile

    # Codex CLI
    export AZURE_OPENAI_API_KEY='your-api-key'
    export AZURE_BASE_URL="https://your-resource-name.openai.azure.com/openai"

Only o4-mini and codex-mini models able to use Responses API.

If I get codex v0.5.0 by npm install -g @openai/codex, I still can't run with Azure OpenAI. I tried everything. It just can't run.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions