You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Azure OpenAI Python SDK works, but codex CLI fails with 404 #174
I’m able to successfully connect to Azure OpenAI using the Python SDK with the following code:
importosfromopenaiimportAzureOpenAIendpoint="https://REDACTED.openai.azure.com/"deployment="o4-mini"subscription_key="REDACTED"api_version="2025-03-01-preview"client=AzureOpenAI(
api_version=api_version,
azure_endpoint=endpoint,
api_key=subscription_key,
)
response=client.chat.completions.create(
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "I am going to Paris, what should I see?"}
],
max_completion_tokens=100000,
model=deployment
)
print(response.choices[0].message.content)
This works as expected and returns a valid completion from the o4-mini deployment.
❗ Issue
However, when I attempt to use the Codex CLI with the following environment variables:
Thank you for the detailed feedback! Please try using the latest version of Codex CLI, as we're actively working on improvements and fixes. If the issue persists, we'd appreciate it if you could try contributing a fix to the codex-rs/ implementation. More details on our project update can be found here.
Activity
tibo-openai commentedon Apr 17, 2025
There is an open PR here:
#92
Could you try it and comment there if it doesn't work?
adhishthite commentedon Apr 17, 2025
@tibo-openai Done! :) Looking forward to getting this integrated soon!
piyushptiwari1 commentedon May 30, 2025
Hi @adhishthite Is your issue resolved? I am also facing the same issue
vishal9483 commentedon Jun 22, 2025
I am also facing same issue. Anyone has any update on this?
codex-maintainers commentedon Aug 7, 2025
Thank you for the detailed feedback! Please try using the latest version of Codex CLI, as we're actively working on improvements and fixes. If the issue persists, we'd appreciate it if you could try contributing a fix to the
codex-rs/implementation. More details on our project update can be found here.test(gui): add task cycling shortcut stories (openai#174)