fix: NIT None reasoning effort (#3536)
Fix the reasoning effort not being set to None in the UI
This commit is contained in:
@@ -32,7 +32,7 @@ use toml::Value as TomlValue;
|
|||||||
use toml_edit::DocumentMut;
|
use toml_edit::DocumentMut;
|
||||||
|
|
||||||
const OPENAI_DEFAULT_MODEL: &str = "gpt-5";
|
const OPENAI_DEFAULT_MODEL: &str = "gpt-5";
|
||||||
pub const GPT5_HIGH_MODEL: &str = "gpt-5-high";
|
pub const GPT5_HIGH_MODEL: &str = "gpt-5-high-new";
|
||||||
|
|
||||||
/// Maximum number of bytes of the documentation that will be embedded. Larger
|
/// Maximum number of bytes of the documentation that will be embedded. Larger
|
||||||
/// files are *silently truncated* to this size so we do not take up too much of
|
/// files are *silently truncated* to this size so we do not take up too much of
|
||||||
|
|||||||
@@ -380,11 +380,12 @@ async fn run_ratatui_app(
|
|||||||
|
|
||||||
if switch_to_new_model {
|
if switch_to_new_model {
|
||||||
config.model = GPT5_HIGH_MODEL.to_owned();
|
config.model = GPT5_HIGH_MODEL.to_owned();
|
||||||
|
config.model_reasoning_effort = None;
|
||||||
if let Err(e) = persist_model_selection(
|
if let Err(e) = persist_model_selection(
|
||||||
&config.codex_home,
|
&config.codex_home,
|
||||||
active_profile.as_deref(),
|
active_profile.as_deref(),
|
||||||
&config.model,
|
&config.model,
|
||||||
None,
|
config.model_reasoning_effort,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user