Skip to content

Let Codex route to Azure OpenAI and Microsoft Foundry Model Provider Services - #685

Open
masonc08 wants to merge 2 commits into
mainfrom
masonc08/codex-azure-openai
Open

masonc08 wants to merge 2 commits into
mainfrom
masonc08/codex-azure-openai

Conversation

@masonc08

@masonc08 masonc08 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

What did you change, and why?

Change: Add azure_openai and microsoft_foundry to Codex's allowed provider types (_TOOL_PROVIDER_TYPES).
Why: Codex speaks the OpenAI dialect, and the AI Gateway fronts azure_openai- and microsoft_foundry-backed Model Provider Services with that same OpenAI surface — but the allowlist only listed openai, so pointing Codex at one (via --provider or a managed config) failed with "codex can't route to (supported: openai)". This permits both.

How do you know it works?

Testing: Extended the provider-support unit test to assert Codex accepts azure_openai and microsoft_foundry; test_managed_setup.py + test_databricks.py pass (369 tests). End-to-end routing against live Azure OpenAI / Foundry MPSes is being validated separately.

This pull request and its description were written by Isaac.

masonc08 and others added 2 commits September 16, 2026 19:00
Codex speaks the OpenAI dialect, which the gateway also fronts for
azure_openai-backed MPSes, but the provider-type allowlist only listed
`openai` — so launching Codex against an Azure OpenAI MPS was rejected
("codex can't route to (supported: openai)"). Add azure_openai to codex's
allowed provider types.

Co-authored-by: Isaac <no-reply@databricks.com>
microsoft_foundry speaks the same OpenAI dialect as azure_openai, so add it to
codex's provider-type allowlist alongside it.

Co-authored-by: Isaac <no-reply@databricks.com>
@masonc08 masonc08 changed the title Let Codex route to Azure OpenAI Model Provider Services Let Codex route to Azure OpenAI and Microsoft Foundry Model Provider Services Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant