fix(provider): exclude chat models from textVerbosity setting#11363
Merged
R44VC0RP merged 1 commit intoanomalyco:devfrom Jan 30, 2026
Merged
fix(provider): exclude chat models from textVerbosity setting#11363R44VC0RP merged 1 commit intoanomalyco:devfrom
R44VC0RP merged 1 commit intoanomalyco:devfrom
Conversation
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
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
elliotsegler
pushed a commit
to Akkodis-Solution-Engineering/opencode
that referenced
this pull request
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #9969 - GPT-5.x chat models (e.g.
gpt-5.2-chat-latest) were incorrectly gettingtextVerbosity: "low"set, but these models only supportmediumverbosity, causing API errors.Root Cause
The condition at
transform.ts:592checked forgpt-5-chat(dash) but missed dot-versioned chat models likegpt-5.2-chat-latest:Fix
Added
-chatsuffix check to exclude all chat model variants from thetextVerbosity: "low"setting:Testing
Added 7 new test cases covering:
gpt-5.2andgpt-5.1→ should havetextVerbosity: "low"gpt-5.2-chat-latest,gpt-5.1-chat-latest,gpt-5.2-chat,gpt-5-chat→ should NOT havetextVerbositysetgpt-5.2-codex→ should NOT havetextVerbosityset (already excluded)All 88 transform tests pass.