diff --git a/src/providers/codex/translate/model_allowlist.rs b/src/providers/codex/translate/model_allowlist.rs index 63075fc4..3d7afde5 100644 --- a/src/providers/codex/translate/model_allowlist.rs +++ b/src/providers/codex/translate/model_allowlist.rs @@ -23,6 +23,8 @@ pub const ALLOWED_MODELS: &[&str] = &[ "gpt-6-sol", "gpt-6.1-sol", "gpt-6.1-terra", + "gpt-6.2-sol", + "gpt-6.2-astra", ]; pub const MODEL_ALIASES: &[(&str, &str)] = &[ @@ -207,6 +209,8 @@ pub fn uses_responses_lite(model: &str) -> bool { | "gpt-6-sol" | "gpt-6.1-sol" | "gpt-6.1-terra" + | "gpt-6.2-sol" + | "gpt-6.2-astra" ) || (!ALLOWED_MODELS.contains(&model) && catalog_model(model) .is_some_and(|entry| entry.supported_in_api && entry.use_responses_lite)) @@ -224,6 +228,8 @@ pub fn uses_responses_lite_with_full_lane(model: &str, full_lane: bool) -> bool | "gpt-6-sol" | "gpt-6.1-sol" | "gpt-6.1-terra" + | "gpt-6.2-sol" + | "gpt-6.2-astra" ) { return false; @@ -272,6 +278,8 @@ mod tests { "gpt-6-sol", "gpt-6.1-sol", "gpt-6.1-terra", + "gpt-6.2-sol", + "gpt-6.2-astra", ] { assert!(uses_responses_lite_with_full_lane(model, false), "{model}"); assert!(!uses_responses_lite_with_full_lane(model, true), "{model}"); diff --git a/src/registry.rs b/src/registry.rs index 2dad8e5c..bb4114e8 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -54,6 +54,8 @@ pub(crate) const CODEX_MODELS: &[&str] = &[ "gpt-6-sol", "gpt-6.1-sol", "gpt-6.1-terra", + "gpt-6.2-sol", + "gpt-6.2-astra", ]; pub(crate) const KIMI_MODELS: &[&str] = &["kimi-for-coding", "kimi-k2.6", "kimi-k3", "k2.6", "k3"]; @@ -486,6 +488,10 @@ mod tests { "gpt-6.1-sol-fast", "gpt-6.1-terra", "gpt-6.1-terra-fast", + "gpt-6.2-sol", + "gpt-6.2-sol-fast", + "gpt-6.2-astra", + "gpt-6.2-astra-fast", ] { assert_eq!( registry.provider_for_model(model, None).unwrap().name(),