Skip to content

Commit dc2aeac

Browse files
authored
override verbosity for gpt-5-codex (#6007)
we are seeing [reports](#6004) of users having verbosity in their config.toml and facing issues. gpt-5-codex doesn't accept other values rather than medium for verbosity.
1 parent f842849 commit dc2aeac

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

codex-rs/core/src/client.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,12 @@ impl ModelClient {
216216
let verbosity = if self.config.model_family.support_verbosity {
217217
self.config.model_verbosity
218218
} else {
219-
warn!(
220-
"model_verbosity is set but ignored as the model does not support verbosity: {}",
221-
self.config.model_family.family
222-
);
219+
if self.config.model_verbosity.is_some() {
220+
warn!(
221+
"model_verbosity is set but ignored as the model does not support verbosity: {}",
222+
self.config.model_family.family
223+
);
224+
}
223225
None
224226
};
225227

codex-rs/core/src/model_family.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
160160
reasoning_summary_format: ReasoningSummaryFormat::Experimental,
161161
base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),
162162
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
163-
support_verbosity: true,
163+
support_verbosity: false,
164164
)
165165
} else if slug.starts_with("gpt-5") {
166166
model_family!(

0 commit comments

Comments
 (0)