Skip to content

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

Merged
R44VC0RP merged 1 commit intoanomalyco:devfrom
R44VC0RP:fix/gpt-5-chat-text-verbosity
Jan 30, 2026
Merged

fix(provider): exclude chat models from textVerbosity setting#11363
R44VC0RP merged 1 commit intoanomalyco:devfrom
R44VC0RP:fix/gpt-5-chat-text-verbosity

Conversation

@R44VC0RP
Copy link
Collaborator

Summary

Fixes #9969 - GPT-5.x chat models (e.g. gpt-5.2-chat-latest) were incorrectly getting textVerbosity: "low" set, but these models only support medium verbosity, causing API errors.

Root Cause

The condition at transform.ts:592 checked for gpt-5-chat (dash) but missed dot-versioned chat models like gpt-5.2-chat-latest:

// Before: only excluded "gpt-5-chat", missed "gpt-5.2-chat-latest"
if (input.model.api.id.includes("gpt-5") && !input.model.api.id.includes("gpt-5-chat")) {

Fix

Added -chat suffix check to exclude all chat model variants from the textVerbosity: "low" setting:

if (
  input.model.api.id.includes("gpt-5.") &&
  !input.model.api.id.includes("codex") &&
  !input.model.api.id.includes("-chat") &&  // <-- Added
  input.model.providerID !== "azure"
) {
  result["textVerbosity"] = "low"
}

Testing

Added 7 new test cases covering:

  • gpt-5.2 and gpt-5.1 → should have textVerbosity: "low"
  • gpt-5.2-chat-latest, gpt-5.1-chat-latest, gpt-5.2-chat, gpt-5-chat → should NOT have textVerbosity set
  • gpt-5.2-codex → should NOT have textVerbosity set (already excluded)

All 88 transform tests pass.

GPT-5.x chat models (e.g. gpt-5.2-chat-latest) only support 'medium'
verbosity, but the transform code was incorrectly setting 'low' for them.

The condition checked for 'gpt-5-chat' (dash) but missed 'gpt-5.2-chat'
(dot-versioned chat models). Added check for '-chat' suffix to exclude
all chat model variants.

Fixes anomalyco#9969
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@R44VC0RP R44VC0RP requested a review from rekram1-node January 30, 2026 20:55
@R44VC0RP R44VC0RP merged commit 358cb1e into anomalyco:dev Jan 30, 2026
5 of 7 checks passed
@R44VC0RP R44VC0RP deleted the fix/gpt-5-chat-text-verbosity branch January 30, 2026 20:57
elliotsegler pushed a commit to Akkodis-Solution-Engineering/opencode that referenced this pull request Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistent invalid reasoning value ("low") overrides env and CLI settings

1 participant