chore: drop env var flag (#5462)

This commit is contained in:
jif-oai
2025-10-21 17:11:12 +01:00
committed by GitHub
parent a517f6f55b
commit ad9a289951

View File

@@ -84,11 +84,7 @@ macro_rules! model_family {
/// Returns a `ModelFamily` for the given model slug, or `None` if the slug /// Returns a `ModelFamily` for the given model slug, or `None` if the slug
/// does not match any known model family. /// does not match any known model family.
pub fn find_family_for_model(mut slug: &str) -> Option<ModelFamily> { pub fn find_family_for_model(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";
}
if slug.starts_with("o3") { if slug.starts_with("o3") {
model_family!( model_family!(
slug, "o3", slug, "o3",