Backport: feat(provider/openai-compatible): add textVerbosity provider option - #9404
Merged
1 commit merged intoOct 10, 2025
Merged
Conversation
## Background The `@ai-sdk/openai-compatible` package was missing support for the `textVerbosity` provider option. This caused API errors when users tried to use `textVerbosity` with OpenAI-compatible providers. <!-- Why was this change necessary? --> ## Summary - Added textVerbosity option to `openaiCompatibleProviderOptions` schema - Transform `textVerbosity` to `verbosity` in API request body - Added unit tests to verify transformation and ensure no duplication in the request body - Updated snapshot tests - Added example file demonstrating `textVerbosity` usage <!-- What did you change? --> ## Manual Verification - Created example file demonstrating `textVerbosity` usage: `examples/ai-core/src/generate-text/openai-compatible-chat-provider-options.ts` - Built the package successfully with `pnpm build` - All unit tests pass, including new textVerbosity tests - Verified through unit tests that: - `textVerbosity` is correctly transformed to `verbosity` in the API request body - No duplicate `textVerbosity` field appears in requests - Custom options still work alongside `textVerbosity` ## Related Issues Fixes #8832 --------- Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com> Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
ghost
enabled auto-merge (squash)
October 10, 2025 23:10
5 tasks
gr2m
approved these changes
Oct 10, 2025
ghost
deleted the
backport-pr-9400-to-release-v5.0
branch
October 10, 2025 23:21
Merged
This pull request was closed.
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.
This is an automated backport of #9400 to the release-v5.0 branch.