Skip to content

Commit 224222f

Browse files
authored
fix: use codex-exp prefix for experimental models and consider codex- models to be production (#5797)
1 parent 7aab45e commit 224222f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codex-rs/core/src/model_family.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
131131
)
132132

133133
// Internal models.
134-
} else if slug.starts_with("codex-") {
134+
} else if slug.starts_with("codex-exp-") {
135135
model_family!(
136136
slug, slug,
137137
supports_reasoning_summaries: true,
@@ -147,7 +147,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
147147
)
148148

149149
// Production models.
150-
} else if slug.starts_with("gpt-5-codex") {
150+
} else if slug.starts_with("gpt-5-codex") || slug.starts_with("codex-") {
151151
model_family!(
152152
slug, slug,
153153
supports_reasoning_summaries: true,

0 commit comments

Comments
 (0)