mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
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:
@@ -132,7 +132,7 @@ struct RunningCommand {
|
||||
}
|
||||
|
||||
const RATE_LIMIT_WARNING_THRESHOLDS: [f64; 3] = [75.0, 90.0, 95.0];
|
||||
const NUDGE_MODEL_SLUG: &str = "gpt-5-codex-mini";
|
||||
const NUDGE_MODEL_SLUG: &str = "gpt-5.1-codex-mini";
|
||||
const RATE_LIMIT_SWITCH_PROMPT_THRESHOLD: f64 = 90.0;
|
||||
|
||||
#[derive(Default)]
|
||||
@@ -1937,7 +1937,7 @@ impl ChatWidget {
|
||||
|
||||
let warning = "⚠ High reasoning effort can quickly consume Plus plan rate limits.";
|
||||
let show_warning =
|
||||
preset.model.starts_with("gpt-5-codex") && effort == ReasoningEffortConfig::High;
|
||||
preset.model.starts_with("gpt-5.1-codex") && effort == ReasoningEffortConfig::High;
|
||||
let selected_description = show_warning.then(|| {
|
||||
description
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user