override verbosity for gpt-5-codex (#6007)
we are seeing [reports](https://github.com/openai/codex/issues/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.
This commit is contained in:
@@ -216,10 +216,12 @@ impl ModelClient {
|
|||||||
let verbosity = if self.config.model_family.support_verbosity {
|
let verbosity = if self.config.model_family.support_verbosity {
|
||||||
self.config.model_verbosity
|
self.config.model_verbosity
|
||||||
} else {
|
} else {
|
||||||
warn!(
|
if self.config.model_verbosity.is_some() {
|
||||||
"model_verbosity is set but ignored as the model does not support verbosity: {}",
|
warn!(
|
||||||
self.config.model_family.family
|
"model_verbosity is set but ignored as the model does not support verbosity: {}",
|
||||||
);
|
self.config.model_family.family
|
||||||
|
);
|
||||||
|
}
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
|
|||||||
reasoning_summary_format: ReasoningSummaryFormat::Experimental,
|
reasoning_summary_format: ReasoningSummaryFormat::Experimental,
|
||||||
base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),
|
base_instructions: GPT_5_CODEX_INSTRUCTIONS.to_string(),
|
||||||
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
|
apply_patch_tool_type: Some(ApplyPatchToolType::Freeform),
|
||||||
support_verbosity: true,
|
support_verbosity: false,
|
||||||
)
|
)
|
||||||
} else if slug.starts_with("gpt-5") {
|
} else if slug.starts_with("gpt-5") {
|
||||||
model_family!(
|
model_family!(
|
||||||
|
|||||||
Reference in New Issue
Block a user