mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
caribou (#8265)
Welcome caribou <img width="1536" height="1024" alt="image" src="https://github.com/user-attachments/assets/2a67b21f-40cf-4518-aee4-691af331ab50" />
This commit is contained in:
@@ -49,19 +49,19 @@ fn expected_models_for_chatgpt() -> Vec<ModelPreset> {
|
||||
let mut gpt_5_1_codex_max = gpt_5_1_codex_max();
|
||||
gpt_5_1_codex_max.is_default = false;
|
||||
vec![
|
||||
caribou(),
|
||||
gpt_52_codex(),
|
||||
gpt_5_1_codex_max,
|
||||
gpt_5_1_codex_mini(),
|
||||
gpt_5_2(),
|
||||
]
|
||||
}
|
||||
|
||||
fn caribou() -> ModelPreset {
|
||||
fn gpt_52_codex() -> ModelPreset {
|
||||
ModelPreset {
|
||||
id: "caribou".to_string(),
|
||||
model: "caribou".to_string(),
|
||||
display_name: "caribou".to_string(),
|
||||
description: "Latest Codex-optimized flagship for deep and fast reasoning.".to_string(),
|
||||
id: "gpt-5.2-codex".to_string(),
|
||||
model: "gpt-5.2-codex".to_string(),
|
||||
display_name: "gpt-5.2-codex".to_string(),
|
||||
description: "Latest frontier agentic coding model.".to_string(),
|
||||
default_reasoning_effort: ReasoningEffort::Medium,
|
||||
supported_reasoning_efforts: vec![
|
||||
effort(
|
||||
@@ -93,7 +93,7 @@ fn gpt_5_1_codex_max() -> ModelPreset {
|
||||
id: "gpt-5.1-codex-max".to_string(),
|
||||
model: "gpt-5.1-codex-max".to_string(),
|
||||
display_name: "gpt-5.1-codex-max".to_string(),
|
||||
description: "Latest Codex-optimized flagship for deep and fast reasoning.".to_string(),
|
||||
description: "Codex-optimized flagship for deep and fast reasoning.".to_string(),
|
||||
default_reasoning_effort: ReasoningEffort::Medium,
|
||||
supported_reasoning_efforts: vec![
|
||||
effort(
|
||||
@@ -114,7 +114,7 @@ fn gpt_5_1_codex_max() -> ModelPreset {
|
||||
),
|
||||
],
|
||||
is_default: true,
|
||||
upgrade: Some(caribou_upgrade()),
|
||||
upgrade: Some(gpt52_codex_upgrade()),
|
||||
show_in_picker: true,
|
||||
supported_in_api: true,
|
||||
}
|
||||
@@ -138,7 +138,7 @@ fn gpt_5_1_codex_mini() -> ModelPreset {
|
||||
),
|
||||
],
|
||||
is_default: false,
|
||||
upgrade: Some(caribou_upgrade()),
|
||||
upgrade: Some(gpt52_codex_upgrade()),
|
||||
show_in_picker: true,
|
||||
supported_in_api: true,
|
||||
}
|
||||
@@ -172,18 +172,18 @@ fn gpt_5_2() -> ModelPreset {
|
||||
),
|
||||
],
|
||||
is_default: false,
|
||||
upgrade: Some(caribou_upgrade()),
|
||||
upgrade: Some(gpt52_codex_upgrade()),
|
||||
show_in_picker: true,
|
||||
supported_in_api: true,
|
||||
}
|
||||
}
|
||||
|
||||
fn caribou_upgrade() -> codex_protocol::openai_models::ModelUpgrade {
|
||||
fn gpt52_codex_upgrade() -> codex_protocol::openai_models::ModelUpgrade {
|
||||
codex_protocol::openai_models::ModelUpgrade {
|
||||
id: "caribou".to_string(),
|
||||
id: "gpt-5.2-codex".to_string(),
|
||||
reasoning_effort_mapping: None,
|
||||
migration_config_key: "caribou".to_string(),
|
||||
model_link: Some("https://www.codex.com/models/caribou".to_string()),
|
||||
migration_config_key: "gpt-5.2-codex".to_string(),
|
||||
model_link: Some("https://openai.com/index/introducing-gpt-5-2-codex".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -388,7 +388,7 @@ async fn remote_models_hide_picker_only_models() -> Result<()> {
|
||||
);
|
||||
|
||||
let selected = manager.get_model(&None, &config).await;
|
||||
assert_eq!(selected, "caribou");
|
||||
assert_eq!(selected, "gpt-5.2-codex");
|
||||
|
||||
let available = manager.list_models(&config).await;
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user