Backport: feat (provider/gateway): add quota entity id to gateway provider options#14164
Merged
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from Apr 6, 2026
Merged
Conversation
…ons (#14154) ## Background Adds a new gateway provider options quotaEntityId that allows a user to set quotas for specific entities. ## Summary Added new gateway provider option ## Manual Verification run example script in `examples/ai-functions/src/stream-text/gateway-provider-options-quota-entity-id.ts` ## Checklist <!-- Do not edit this list. Leave items unchecked that don't apply. If you need to track subtasks, create a new "## Tasks" section Please check if the PR fulfills the following requirements: --> - [ ] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [ ] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [ ] I have reviewed this pull request (self-review) ## Future Work <!-- Feel free to mention things not covered by this PR that can be done in future PRs. Remove the section if it's not needed. --> ## Related Issues <!-- List related issues here, e.g. "Fixes #1234". Remove the section if it's not needed. -->
4 tasks
Contributor
Author
mclenhard
approved these changes
Apr 6, 2026
Contributor
Author
|
|
Contributor
Author
mclenhard
pushed a commit
that referenced
this pull request
Apr 6, 2026
…ateway provider options (#14168) This is an automated backport of #14164 to the release-v5.0 branch. FYI @vercel-ai-sdk[bot] This backport has conflicts that need to be resolved manually. ### `git cherry-pick` output ``` Auto-merging content/providers/01-ai-sdk-providers/00-ai-gateway.mdx CONFLICT (file location): examples/ai-functions/src/stream-text/gateway-provider-options-quota-entity-id.ts added in 3aca847 (Backport: feat (provider/gateway): add quota entity id to gateway provider options (#14164)) inside a directory that was renamed in HEAD, suggesting it should perhaps be moved to examples/ai-core/src/stream-text/gateway-provider-options-quota-entity-id.ts. CONFLICT (directory rename split): Unclear where to rename examples/ai-functions/src/stream-text/nim to; it was renamed to multiple other directories, with no destination getting a majority of the files. Auto-merging packages/gateway/src/gateway-language-model.test.ts Auto-merging packages/gateway/src/gateway-provider-options.ts error: could not apply 3aca847... Backport: feat (provider/gateway): add quota entity id to gateway provider options (#14164) hint: After resolving the conflicts, mark them with hint: "git add/rm <pathspec>", then run hint: "git cherry-pick --continue". hint: You can instead skip this commit with "git cherry-pick --skip". hint: To abort and get back to the state before "git cherry-pick", hint: run "git cherry-pick --abort". hint: Disable this message with "git config set advice.mergeConflict false" ``` Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
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 #14154 to the release-v6.0 branch. FYI @mclenhard