mirror of
https://github.com/openai/codex.git
synced 2026-05-02 18:37:01 +00:00
feat: model picker (#8209)
# External (non-OpenAI) Pull Request Requirements Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed: https://github.com/openai/codex/blob/main/docs/contributing.md If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes. Include a link to a bug report or enhancement request.
This commit is contained in:
@@ -927,7 +927,7 @@ fn active_blob(chat: &ChatWidget) -> String {
|
||||
fn get_available_model(chat: &ChatWidget, model: &str) -> ModelPreset {
|
||||
let models = chat
|
||||
.models_manager
|
||||
.try_list_models()
|
||||
.try_list_models(&chat.config)
|
||||
.expect("models lock available");
|
||||
models
|
||||
.iter()
|
||||
@@ -2014,6 +2014,7 @@ fn single_reasoning_option_skips_selection() {
|
||||
is_default: false,
|
||||
upgrade: None,
|
||||
show_in_picker: true,
|
||||
supported_in_api: true,
|
||||
};
|
||||
chat.open_reasoning_popup(preset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user