Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: drop env var flag (#5462)

jif-oaiad9a28995181
diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rs
index 623cc26ef9..40b00408fb 100644
--- a/codex-rs/core/src/model_family.rs
+++ b/codex-rs/core/src/model_family.rs
@@ -84,11 +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<ModelFamily> {
- // TODO(jif) clean once we have proper feature flags
- if matches!(std::env::var("CODEX_EXPERIMENTAL").as_deref(), Ok("1")) {
- slug = "codex-experimental";
- }
+pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
if slug.starts_with("o3") {
model_family!(
slug, "o3",