@@ -5,7 +5,8 @@ use codex_core::protocol_config_types::ReasoningEffort;
55use once_cell:: sync:: Lazy ;
66
77pub const HIDE_GPT5_1_MIGRATION_PROMPT_CONFIG : & str = "hide_gpt5_1_migration_prompt" ;
8- pub const HIDE_ARCTICFOX_MIGRATION_PROMPT_CONFIG : & str = "hide_arcticfox_migration_prompt" ;
8+ pub const HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG : & str =
9+ "hide_gpt-5.1-codex-max_migration_prompt" ;
910
1011/// A reasoning effort option that can be surfaced for a model.
1112#[ derive( Debug , Clone , Copy ) ]
@@ -49,9 +50,9 @@ pub struct ModelPreset {
4950static PRESETS : Lazy < Vec < ModelPreset > > = Lazy :: new ( || {
5051 vec ! [
5152 ModelPreset {
52- id: "arcticfox " ,
53- model: "arcticfox " ,
54- display_name: "arcticfox " ,
53+ id: "gpt-5.1-codex-max " ,
54+ model: "gpt-5.1-codex-max " ,
55+ display_name: "gpt-5.1-codex-max " ,
5556 description: "Latest Codex-optimized flagship for deep and fast reasoning." ,
5657 default_reasoning_effort: ReasoningEffort :: Medium ,
5758 supported_reasoning_efforts: & [
@@ -98,9 +99,9 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {
9899 ] ,
99100 is_default: false ,
100101 upgrade: Some ( ModelUpgrade {
101- id: "arcticfox " ,
102+ id: "gpt-5.1-codex-max " ,
102103 reasoning_effort_mapping: None ,
103- migration_config_key: HIDE_ARCTICFOX_MIGRATION_PROMPT_CONFIG ,
104+ migration_config_key: HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG ,
104105 } ) ,
105106 show_in_picker: true ,
106107 } ,
@@ -121,7 +122,11 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {
121122 } ,
122123 ] ,
123124 is_default: false ,
124- upgrade: None ,
125+ upgrade: Some ( ModelUpgrade {
126+ id: "gpt-5.1-codex-max" ,
127+ reasoning_effort_mapping: None ,
128+ migration_config_key: HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG ,
129+ } ) ,
125130 show_in_picker: true ,
126131 } ,
127132 ModelPreset {
@@ -145,7 +150,11 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {
145150 } ,
146151 ] ,
147152 is_default: false ,
148- upgrade: None ,
153+ upgrade: Some ( ModelUpgrade {
154+ id: "gpt-5.1-codex-max" ,
155+ reasoning_effort_mapping: None ,
156+ migration_config_key: HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG ,
157+ } ) ,
149158 show_in_picker: true ,
150159 } ,
151160 // Deprecated models.
@@ -171,9 +180,9 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {
171180 ] ,
172181 is_default: false ,
173182 upgrade: Some ( ModelUpgrade {
174- id: "arcticfox " ,
183+ id: "gpt-5.1-codex-max " ,
175184 reasoning_effort_mapping: None ,
176- migration_config_key: HIDE_ARCTICFOX_MIGRATION_PROMPT_CONFIG ,
185+ migration_config_key: HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG ,
177186 } ) ,
178187 show_in_picker: false ,
179188 } ,
@@ -227,12 +236,9 @@ static PRESETS: Lazy<Vec<ModelPreset>> = Lazy::new(|| {
227236 ] ,
228237 is_default: false ,
229238 upgrade: Some ( ModelUpgrade {
230- id: "gpt-5.1" ,
231- reasoning_effort_mapping: Some ( HashMap :: from( [ (
232- ReasoningEffort :: Minimal ,
233- ReasoningEffort :: Low ,
234- ) ] ) ) ,
235- migration_config_key: HIDE_GPT5_1_MIGRATION_PROMPT_CONFIG ,
239+ id: "gpt-5.1-codex-max" ,
240+ reasoning_effort_mapping: None ,
241+ migration_config_key: HIDE_GPT_5_1_CODEX_MAX_MIGRATION_PROMPT_CONFIG ,
236242 } ) ,
237243 show_in_picker: false ,
238244 } ,
@@ -243,7 +249,7 @@ pub fn builtin_model_presets(auth_mode: Option<AuthMode>) -> Vec<ModelPreset> {
243249 PRESETS
244250 . iter ( )
245251 . filter ( |preset| match auth_mode {
246- Some ( AuthMode :: ApiKey ) => preset. show_in_picker && preset. id != "arcticfox " ,
252+ Some ( AuthMode :: ApiKey ) => preset. show_in_picker && preset. id != "gpt-5.1-codex-max " ,
247253 _ => preset. show_in_picker ,
248254 } )
249255 . cloned ( )
@@ -266,8 +272,12 @@ mod tests {
266272 }
267273
268274 #[ test]
269- fn arcticfox_hidden_for_api_key_auth ( ) {
275+ fn gpt_5_1_codex_max_hidden_for_api_key_auth ( ) {
270276 let presets = builtin_model_presets ( Some ( AuthMode :: ApiKey ) ) ;
271- assert ! ( presets. iter( ) . all( |preset| preset. id != "arcticfox" ) ) ;
277+ assert ! (
278+ presets
279+ . iter( )
280+ . all( |preset| preset. id != "gpt-5.1-codex-max" )
281+ ) ;
272282 }
273283}
0 commit comments