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

@@ -140,10 +140,10 @@ async fn model_selects_expected_tools() {
"update_plan".to_string(),
"apply_patch".to_string()
],
"gpt-5-codex should expose the apply_patch tool",
"gpt-5.1-codex should expose the apply_patch tool",
);
let gpt51_tools = collect_tool_identifiers_for_model("gpt-5-codex").await;
let gpt51_tools = collect_tool_identifiers_for_model("gpt-5.1").await;
assert_eq!(
gpt51_tools,
vec![
@@ -154,6 +154,6 @@ async fn model_selects_expected_tools() {
"update_plan".to_string(),
"apply_patch".to_string()
],
"gpt-5-codex should expose the apply_patch tool",
"gpt-5.1 should expose the apply_patch tool",
);
}