Migrating from codex-cli to codex-rs

Resolved 💬 5 comments Opened Jun 22, 2025 by vvvlad Closed Jun 30, 2025

Im exposing o4-mini model via a project in Azure.

When using typescript version of codex (ver 0.1.2505172129) with the following config.json content, all works as expected:

{
"model": "o4-mini",
"provider": "azure",
"providers": {
"azure": {
"baseURL": "https://xxxxx.openai.azure.com/openai",
"envKey": "OPENAI_API_KEY",
"name": "azure"
}
}
}

but with rust version of codex @openai/codex@native (ver codex-cli 0.0.2505291458) with config in config.toml:

model="o4-mini"
model_provider = "azure"
[model_providers.azure]
name = "Azure Remote"
base_url = "https://xxxxx.openai.azure.com/openai"
env_key = "OPENAI_API_KEY"
wire_api = "chat"

I get:
BackgroundEvent(BackgroundEventEvent { message: "stream error: unexpected status 404 Not Found: {\"detail\":\"Not Found\"}; retrying

I tried to chang base_url to different variations, but no use, always the same result.

Is this a bug? Missing support for Azure?
Thanks

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗