chore(provider/gateway): rename GatewayLanguageModelOptions back to GatewayProviderOptions#13855
Merged
felixarntz merged 3 commits intomainfrom Mar 26, 2026
Merged
Conversation
Collaborator
Author
|
@tigent why did you add "deprecation"? there's none happening here. |
|
labels: ai/provider, provider/gateway, deprecation, maintenance
removed: deprecation |
dancer
approved these changes
Mar 26, 2026
shaper
approved these changes
Mar 26, 2026
vercel-ai-sdk bot
pushed a commit
that referenced
this pull request
Mar 26, 2026
…atewayProviderOptions (#13855) ## Background When provider options types were recently renamed from `{Provider}ProviderOptions` to `{Provider}{ModelType}Options` across all providers (see #12443), the AI Gateway's type was renamed from `GatewayProviderOptions` to `GatewayLanguageModelOptions`. However, unlike other providers, the gateway's options are truly provider-wide (routing, fallbacks, tags, BYOK, etc.) — not specific to any model type. The original name was more accurate. ## Summary - Renamed `GatewayLanguageModelOptions` back to `GatewayProviderOptions` as the primary export, with `GatewayLanguageModelOptions` kept as a deprecated alias - Updated all examples, docs, and type tests to use `GatewayProviderOptions` - Added a note to `contributing/providers.md` documenting when `{Provider}ProviderOptions` should be used instead of `{Provider}{ModelType}Options` ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review)
Contributor
|
✅ Backport PR created: #13856 |
vercel-ai-sdk bot
added a commit
that referenced
this pull request
Mar 26, 2026
… back to GatewayProviderOptions (#13856) This is an automated backport of #13855 to the release-v6.0 branch. FYI @felixarntz Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
Contributor
|
🚀 Published in:
|
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.
Background
When provider options types were recently renamed from
{Provider}ProviderOptionsto{Provider}{ModelType}Optionsacross all providers (see #12443), the AI Gateway's type was renamed fromGatewayProviderOptionstoGatewayLanguageModelOptions. However, unlike other providers, the gateway's options are truly provider-wide (routing, fallbacks, tags, BYOK, etc.) — not specific to any model type. The original name was more accurate.Summary
GatewayLanguageModelOptionsback toGatewayProviderOptionsas the primary export, withGatewayLanguageModelOptionskept as a deprecated aliasGatewayProviderOptionscontributing/providers.mddocumenting when{Provider}ProviderOptionsshould be used instead of{Provider}{ModelType}OptionsChecklist
pnpm changesetin the project root)