From ffd7cf856045221b515367d2434bb8851c73e7a9 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Tue, 21 Oct 2025 16:50:21 +0100 Subject: [PATCH 1/2] chore: drop env var flag --- codex-rs/core/src/model_family.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rs index 623cc26ef94..e86f557784d 100644 --- a/codex-rs/core/src/model_family.rs +++ b/codex-rs/core/src/model_family.rs @@ -85,10 +85,6 @@ macro_rules! model_family { /// Returns a `ModelFamily` for the given model slug, or `None` if the slug /// does not match any known model family. pub fn find_family_for_model(mut slug: &str) -> Option { - // TODO(jif) clean once we have proper feature flags - if matches!(std::env::var("CODEX_EXPERIMENTAL").as_deref(), Ok("1")) { - slug = "codex-experimental"; - } if slug.starts_with("o3") { model_family!( slug, "o3", From 3e90bad78579cde904add54564195af269f7a9e5 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Tue, 21 Oct 2025 16:55:59 +0100 Subject: [PATCH 2/2] Clippy --- codex-rs/core/src/model_family.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rs index e86f557784d..40b00408fbd 100644 --- a/codex-rs/core/src/model_family.rs +++ b/codex-rs/core/src/model_family.rs @@ -84,7 +84,7 @@ macro_rules! model_family { /// Returns a `ModelFamily` for the given model slug, or `None` if the slug /// does not match any known model family. -pub fn find_family_for_model(mut slug: &str) -> Option { +pub fn find_family_for_model(slug: &str) -> Option { if slug.starts_with("o3") { model_family!( slug, "o3",