-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat (provider/gateway): add user and tags provider options #9436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shaper
merged 2 commits into
main
from
10-12-feat_provider_gateway_add_user_and_tags_provider_options
Oct 13, 2025
Merged
feat (provider/gateway): add user and tags provider options #9436
shaper
merged 2 commits into
main
from
10-12-feat_provider_gateway_add_user_and_tags_provider_options
Oct 13, 2025
+93
−5
Conversation
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
b59b887
to
78f6774
Compare
lgrammel
reviewed
Oct 13, 2025
lgrammel
reviewed
Oct 13, 2025
examples/ai-core/src/stream-text/gateway-provider-options-tags.ts
Outdated
Show resolved
Hide resolved
lgrammel
reviewed
Oct 13, 2025
lgrammel
approved these changes
Oct 13, 2025
gr2m
approved these changes
Oct 13, 2025
78f6774
to
ea0ecc7
Compare
vercel-ai-sdk bot
pushed a commit
that referenced
this pull request
Oct 13, 2025
## Background Added user tracking and request tagging capabilities to the AI Gateway provider to enable better usage analytics and cost attribution. ## Summary - Added `user` option to track requests by end-user identifier - Added `tags` option to categorize requests for reporting and filtering - Updated documentation with examples showing how to use these new tracking features - Added a changeset for the patch update to `@ai-sdk/gateway` ## Manual Verification Verified that the new options are properly passed through to the AI Gateway. ## 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] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root) - [x] I have reviewed this pull request (self-review)
✅ Backport PR created: #9482 |
vercel-ai-sdk bot
added a commit
that referenced
this pull request
Oct 13, 2025
…#9482) This is an automated backport of #9436 to the release-v5.0 branch. Co-authored-by: Walter Korman <[email protected]>
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
Added user tracking and request tagging capabilities to the AI Gateway provider to enable better usage analytics and cost attribution.
Summary
user
option to track requests by end-user identifiertags
option to categorize requests for reporting and filtering@ai-sdk/gateway
Manual Verification
Verified that the new options are properly passed through to the AI Gateway.
Checklist
pnpm changeset
in the project root)pnpm prettier-fix
in the project root)