Skip to content

Comments

feat: add Azure OpenAI provider support#44

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

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

Conversation

@cdowellmdb
Copy link

@cdowellmdb cdowellmdb commented Oct 29, 2025

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
Copy link

github-actions bot commented Oct 29, 2025

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

@cdowellmdb
Copy link
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
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
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
Collaborator

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

@cdowellmdb
Copy link
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