From 21ce054ffd6721e19d4e01a8535bc89e7b447c1f Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 7 Aug 2025 08:56:28 -0700 Subject: [PATCH] fix: change OPENAI_DEFAULT_MODEL to "2025-08-06-model" --- codex-rs/core/src/config.rs | 3 ++- codex-rs/core/src/flags.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rs index 081306dab1..7c71c8b59d 100644 --- a/codex-rs/core/src/config.rs +++ b/codex-rs/core/src/config.rs @@ -9,7 +9,6 @@ use crate::config_types::ShellEnvironmentPolicy; use crate::config_types::ShellEnvironmentPolicyToml; use crate::config_types::Tui; use crate::config_types::UriBasedFileOpener; -use crate::flags::OPENAI_DEFAULT_MODEL; use crate::model_family::ModelFamily; use crate::model_family::find_family_for_model; use crate::model_provider_info::ModelProviderInfo; @@ -24,6 +23,8 @@ use std::path::Path; use std::path::PathBuf; use toml::Value as TomlValue; +const OPENAI_DEFAULT_MODEL: &str = "2025-08-06-model"; + /// Maximum number of bytes of the documentation that will be embedded. Larger /// files are *silently truncated* to this size so we do not take up too much of /// the context window. diff --git a/codex-rs/core/src/flags.rs b/codex-rs/core/src/flags.rs index c150405491..60201a3b18 100644 --- a/codex-rs/core/src/flags.rs +++ b/codex-rs/core/src/flags.rs @@ -3,7 +3,6 @@ use std::time::Duration; use env_flags::env_flags; env_flags! { - pub OPENAI_DEFAULT_MODEL: &str = "codex-mini-latest"; pub OPENAI_API_BASE: &str = "https://api.openai.com/v1"; /// Fallback when the provider-specific key is not set.