Skip to content

Commit 828e206

Browse files
authored
fix(codex-rs): use codex-mini-latest as default (openai#1164)
1 parent 92957c4 commit 828e206

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

codex-rs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The `config.toml` file supports the following options:
3232
The model that Codex should use.
3333

3434
```toml
35-
model = "o3" # overrides the default of "o4-mini"
35+
model = "o3" # overrides the default of "codex-mini-latest"
3636
```
3737

3838
### model_provider
@@ -155,7 +155,7 @@ Users can specify config values at multiple levels. Order of precedence is as fo
155155
1. custom command-line argument, e.g., `--model o3`
156156
2. as part of a profile, where the `--profile` is specified via a CLI (or in the config file itself)
157157
3. as an entry in `config.toml`, e.g., `model = "o3"`
158-
4. the default value that comes with Codex CLI (i.e., Codex CLI defaults to `o4-mini`)
158+
4. the default value that comes with Codex CLI (i.e., Codex CLI defaults to `codex-mini-latest`)
159159

160160
### sandbox_permissions
161161

codex-rs/common/src/config_override.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct CliConfigOverrides {
2323
/// parse as JSON, the raw string is used as a literal.
2424
///
2525
/// Examples:
26-
/// - `-c model="o4-mini"`
26+
/// - `-c model="o3"`
2727
/// - `-c 'sandbox_permissions=["disk-full-read-access"]'`
2828
/// - `-c shell_environment_policy.inherit=all`
2929
#[arg(
@@ -61,7 +61,7 @@ impl CliConfigOverrides {
6161

6262
// Attempt to parse as JSON. If that fails, treat it as a raw
6363
// string. This allows convenient usage such as
64-
// `-c model=o4-mini` without the quotes.
64+
// `-c model=o3` without the quotes.
6565
let value: Value = match parse_toml_value(value_str) {
6666
Ok(v) => v,
6767
Err(_) => Value::String(value_str.to_string()),

codex-rs/core/src/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::time::Duration;
33
use env_flags::env_flags;
44

55
env_flags! {
6-
pub OPENAI_DEFAULT_MODEL: &str = "o4-mini";
6+
pub OPENAI_DEFAULT_MODEL: &str = "codex-mini-latest";
77
pub OPENAI_API_BASE: &str = "https://api.openai.com/v1";
88

99
/// Fallback when the provider-specific key is not set.

codex-rs/core/src/protocol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,15 +561,15 @@ mod tests {
561561
id: "1234".to_string(),
562562
msg: EventMsg::SessionConfigured(SessionConfiguredEvent {
563563
session_id,
564-
model: "o4-mini".to_string(),
564+
model: "codex-mini-latest".to_string(),
565565
history_log_id: 0,
566566
history_entry_count: 0,
567567
}),
568568
};
569569
let serialized = serde_json::to_string(&event).unwrap();
570570
assert_eq!(
571571
serialized,
572-
r#"{"id":"1234","msg":{"type":"session_configured","session_id":"67e55044-10b1-426f-9247-bb680e5fe0c8","model":"o4-mini","history_log_id":0,"history_entry_count":0}}"#
572+
r#"{"id":"1234","msg":{"type":"session_configured","session_id":"67e55044-10b1-426f-9247-bb680e5fe0c8","model":"codex-mini-latest","history_log_id":0,"history_entry_count":0}}"#
573573
);
574574
}
575575
}

0 commit comments

Comments
 (0)