-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Codex is running?
codex-cli 0.11.0
Which model were you using?
any
What platform is your computer?
any
What steps can reproduce the bug?
running
codex exec -c model=codex-mini -c model_provider=azure -c model_providers.azure.name=azure -c model_providers.azure.wire_api=responses -c model_providers.azure.base_url=https://my-azure-resource.openai.azure.com/openai -c model_providers.azure.env_key=AZURE_OPENAI_API_KEY -c model_providers.azure.query_params.api-version=2025-04-01-preview
What is the expected behavior?
as it was in 0.10.0 - it should run the agent and communicate with the azure hosted model
What do you see instead?
i see:
[2025-08-02T09:35:00] ERROR: Missing environment variable: `OPENAI_API_KEY`. Create an API key (https://platform.openai.com/) and export it as an environment variable.
and when trying to set the OPENAI_API_KEY with the value of AZURE_OPENAI_API_KEY - i get:
[2025-08-02T09:49:07] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 1/10 in 214ms…
[2025-08-02T09:49:07] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 2/10 in 277ms…
[2025-08-02T09:49:08] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 3/10 in 304ms…
[2025-08-02T09:49:08] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 4/10 in 436ms…
[2025-08-02T09:49:09] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 5/10 in 551ms…
[2025-08-02T09:49:09] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 6/10 in 800ms…
[2025-08-02T09:49:10] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 7/10 in 901ms…
[2025-08-02T09:49:11] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 8/10 in 1.244s…
[2025-08-02T09:49:13] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 9/10 in 1.782s…
[2025-08-02T09:49:15] stream error: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}; retrying 10/10 in 2.164s…
[2025-08-02T09:49:17] ERROR: unexpected status 404 Not Found: {"error":{"code":"404","message": "Resource not found"}}
Additional information
seems like it is related to the recent login module changes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working