fix(provider): exclude chat models from textVerbosity setting (#11363)

This commit is contained in:
Ryan Vogel
2026-01-30 15:57:01 -05:00
committed by opencode
parent f51bd28ed8
commit 4a56491e42
2 changed files with 75 additions and 0 deletions

View File

@@ -594,9 +594,12 @@ export namespace ProviderTransform {
result["reasoningEffort"] = "medium"
}
// Only set textVerbosity for non-chat gpt-5.x models
// Chat models (e.g. gpt-5.2-chat-latest) only support "medium" verbosity
if (
input.model.api.id.includes("gpt-5.") &&
!input.model.api.id.includes("codex") &&
!input.model.api.id.includes("-chat") &&
input.model.providerID !== "azure"
) {
result["textVerbosity"] = "low"