Skip to content

Commit 107d2ce

Browse files
authored
fix: change OPENAI_DEFAULT_MODEL to "gpt-5" (#1943)
1 parent 09adbf9 commit 107d2ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codex-rs/core/src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::config_types::ShellEnvironmentPolicy;
99
use crate::config_types::ShellEnvironmentPolicyToml;
1010
use crate::config_types::Tui;
1111
use crate::config_types::UriBasedFileOpener;
12-
use crate::flags::OPENAI_DEFAULT_MODEL;
1312
use crate::model_family::ModelFamily;
1413
use crate::model_family::find_family_for_model;
1514
use crate::model_provider_info::ModelProviderInfo;
@@ -26,6 +25,8 @@ use tempfile::NamedTempFile;
2625
use toml::Value as TomlValue;
2726
use toml_edit::DocumentMut;
2827

28+
const OPENAI_DEFAULT_MODEL: &str = "gpt-5";
29+
2930
/// Maximum number of bytes of the documentation that will be embedded. Larger
3031
/// files are *silently truncated* to this size so we do not take up too much of
3132
/// the context window.

codex-rs/core/src/flags.rs

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

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

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

0 commit comments

Comments
 (0)