Skip to content

Backport: feat (provider/gateway): add quota entity id to gateway provider options#14164

Merged
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-14154-to-release-v6.0
Apr 6, 2026
Merged

Backport: feat (provider/gateway): add quota entity id to gateway provider options#14164
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-14154-to-release-v6.0

Conversation

@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

@vercel-ai-sdk vercel-ai-sdk bot commented Apr 6, 2026

This is an automated backport of #14154 to the release-v6.0 branch. FYI @mclenhard

…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.
-->
@vercel-ai-sdk vercel-ai-sdk bot enabled auto-merge (squash) April 6, 2026 18:23
@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request maintenance CI, internal documentation, automations, etc provider/gateway Issues related to the @ai-sdk/gateway provider labels Apr 6, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Apr 6, 2026

🚀 Published in:

Package Version
ai 6.0.148
@ai-sdk/angular 2.0.149
@ai-sdk/gateway 3.0.90
@ai-sdk/langchain 2.0.154
@ai-sdk/llamaindex 2.0.148
@ai-sdk/mcp 1.0.34
@ai-sdk/react 3.0.150
@ai-sdk/rsc 2.0.148
@ai-sdk/svelte 4.0.148
@ai-sdk/vue 3.0.148

@mclenhard mclenhard added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 6, 2026
@mclenhard mclenhard self-requested a review April 6, 2026 18:43
@vercel-ai-sdk vercel-ai-sdk bot merged commit 3aca847 into release-v6.0 Apr 6, 2026
29 checks passed
@vercel-ai-sdk vercel-ai-sdk bot deleted the backport-pr-14154-to-release-v6.0 branch April 6, 2026 19:07
vercel-ai-sdk bot added a commit that referenced this pull request Apr 6, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 6, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Apr 6, 2026

⚠️ Backport to release-v5.0 created but has conflicts: #14168

@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Apr 6, 2026

🚀 Published in:

Package Version
ai 6.0.149
@ai-sdk/angular 2.0.150
@ai-sdk/gateway 3.0.91
@ai-sdk/langchain 2.0.155
@ai-sdk/llamaindex 2.0.149
@ai-sdk/mcp 1.0.35
@ai-sdk/react 3.0.151
@ai-sdk/rsc 2.0.149
@ai-sdk/svelte 4.0.149
@ai-sdk/vue 3.0.149

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request maintenance CI, internal documentation, automations, etc provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant