From 29d154cb139d63ef4896dd5fa7ebc5b303fb7fea Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 27 May 2025 09:12:55 -0700 Subject: [PATCH 1/2] fix: use o4-mini as the default model (#1135) Rollback of https://github.com/openai/codex/pull/972. --- codex-rs/README.md | 2 +- codex-rs/core/src/flags.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/README.md b/codex-rs/README.md index 705d313071..a0e3f5846e 100644 --- a/codex-rs/README.md +++ b/codex-rs/README.md @@ -32,7 +32,7 @@ The `config.toml` file supports the following options: The model that Codex should use. ```toml -model = "o3" # overrides the default of "codex-mini-latest" +model = "o3" # overrides the default of "o4-mini" ``` ### model_provider diff --git a/codex-rs/core/src/flags.rs b/codex-rs/core/src/flags.rs index c21ef67026..e8cc973c99 100644 --- a/codex-rs/core/src/flags.rs +++ b/codex-rs/core/src/flags.rs @@ -3,7 +3,7 @@ use std::time::Duration; use env_flags::env_flags; env_flags! { - pub OPENAI_DEFAULT_MODEL: &str = "codex-mini-latest"; + pub OPENAI_DEFAULT_MODEL: &str = "o4-mini"; pub OPENAI_API_BASE: &str = "https://api.openai.com/v1"; /// Fallback when the provider-specific key is not set. From 6f2e5ea72ec838e71fe41528302d4d6c005d06dd Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 27 May 2025 09:36:12 -0700 Subject: [PATCH 2/2] fix: update install_native_deps.sh to pick up the latest release --- codex-cli/scripts/install_native_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-cli/scripts/install_native_deps.sh b/codex-cli/scripts/install_native_deps.sh index 5275627f6e..09c1553228 100755 --- a/codex-cli/scripts/install_native_deps.sh +++ b/codex-cli/scripts/install_native_deps.sh @@ -65,7 +65,7 @@ mkdir -p "$BIN_DIR" # Until we start publishing stable GitHub releases, we have to grab the binaries # from the GitHub Action that created them. Update the URL below to point to the # appropriate workflow run: -WORKFLOW_URL="https://github.com/openai/codex/actions/runs/15192425904" +WORKFLOW_URL="https://github.com/openai/codex/actions/runs/15280451034" WORKFLOW_ID="${WORKFLOW_URL##*/}" ARTIFACTS_DIR="$(mktemp -d)"