Change model picker to include gpt5.1 (#6569)

- Change the presets
- Change the tests that make sure we keep the list of tools updated
- Filter out deprecated models
This commit is contained in:
Ahmed Ibrahim
2025-11-12 19:44:53 -08:00
committed by GitHub
parent 966d71c02a
commit ad7eaa80f9
9 changed files with 171 additions and 28 deletions

View File

@@ -1504,13 +1504,13 @@ fn windows_auto_mode_instructions_popup_lists_install_steps() {
fn model_reasoning_selection_popup_snapshot() {
let (mut chat, _rx, _op_rx) = make_chatwidget_manual();
chat.config.model = "gpt-5-codex".to_string();
chat.config.model = "gpt-5.1-codex".to_string();
chat.config.model_reasoning_effort = Some(ReasoningEffortConfig::High);
let preset = builtin_model_presets(None)
.into_iter()
.find(|preset| preset.model == "gpt-5-codex")
.expect("gpt-5-codex preset");
.find(|preset| preset.model == "gpt-5.1-codex")
.expect("gpt-5.1-codex preset");
chat.open_reasoning_popup(preset);
let popup = render_bottom_popup(&chat, 80);
@@ -1582,13 +1582,13 @@ fn feedback_upload_consent_popup_snapshot() {
fn reasoning_popup_escape_returns_to_model_popup() {
let (mut chat, _rx, _op_rx) = make_chatwidget_manual();
chat.config.model = "gpt-5".to_string();
chat.config.model = "gpt-5.1".to_string();
chat.open_model_popup();
let presets = builtin_model_presets(None)
.into_iter()
.find(|preset| preset.model == "gpt-5-codex")
.expect("gpt-5-codex preset");
.find(|preset| preset.model == "gpt-5.1-codex")
.expect("gpt-5.1-codex preset");
chat.open_reasoning_popup(presets);
let before_escape = render_bottom_popup(&chat, 80);