Skip to content

feat: add Azure OpenAI provider support#44

Closed
cdowellmdb wants to merge 2 commits into
openai:mainfrom
cdowellmdb:feat/add-azure-openai-support
Closed

feat: add Azure OpenAI provider support#44
cdowellmdb wants to merge 2 commits into
openai:mainfrom
cdowellmdb:feat/add-azure-openai-support

Conversation

@cdowellmdb

@cdowellmdb cdowellmdb commented Oct 29, 2025

Copy link
Copy Markdown

Summary

  • add an Azure-aware provider path to write-proxy-config, letting the action write either the local proxy stanza or an Azure config

  • detect which credentials are provided at runtime so we only start the Responses proxy when an OpenAI key is present, otherwise wire Azure directly

  • document the new Azure inputs, including the automatic /openai normalization to avoid 404s

  • Closes Azure support? #38

  • Closes How to connect to Azure OpenAI Service? #28

@github-actions

github-actions Bot commented Oct 29, 2025

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@cdowellmdb

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 29, 2025
@cdowellmdb cdowellmdb changed the title Add Azure OpenAI provider support feat: add Azure OpenAI provider support Oct 29, 2025
@bolinfest

Copy link
Copy Markdown
Collaborator

I feel like the better fix here is for me to update https://github.com/openai/codex/tree/main/codex-rs/responses-api-proxy to be configurable such that it can forward requests to an Azure endpoint. What do you think?

@bolinfest

Copy link
Copy Markdown
Collaborator

@cdowellmdb Specifically, I believe that CODEX_AZURE_API_KEY is, at a minimum, in memory as an env var for the node "${{ github.action_path }}/dist/main.js" run-codex-exec invocation in run_codex, so it can be read back out of procfs by Codex even though sudo has been dropped.

@bolinfest

Copy link
Copy Markdown
Collaborator

Here's a draft PR for updating the proxy to support this use case: openai/codex#6129

@cdowellmdb

Copy link
Copy Markdown
Author

@bolinfest I like your approach better, thanks for kicking off both PRs in codex and codex-action!

I'll follow those threads with @pakrym-oai, appreciate your help on this.

@cdowellmdb cdowellmdb closed this Nov 3, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure support? How to connect to Azure OpenAI Service?

2 participants