Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: use codex-exp prefix for experimental models and consider codex- models to be production (#5797)

Thibault Sottiaux224222f09fb3
diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rs
index 40b00408fb..e6e5fbfdf2 100644
--- a/codex-rs/core/src/model_family.rs
+++ b/codex-rs/core/src/model_family.rs
@@ -131,7 +131,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
)
// Internal models.
- } else if slug.starts_with("codex-") {
+ } else if slug.starts_with("codex-exp-") {
model_family!(
slug, slug,
supports_reasoning_summaries: true,
@@ -147,7 +147,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
)
// Production models.
- } else if slug.starts_with("gpt-5-codex") {
+ } else if slug.starts_with("gpt-5-codex") || slug.starts_with("codex-") {
model_family!(
slug, slug,
supports_reasoning_summaries: true,