Skip to content

Conversation

shaper
Copy link
Collaborator

@shaper shaper commented 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

  • 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)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)
  • I have reviewed this pull request (self-review)

Copy link
Collaborator Author

shaper commented Oct 13, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shaper shaper force-pushed the 10-12-feat_provider_gateway_add_user_and_tags_provider_options branch from b59b887 to 78f6774 Compare October 13, 2025 04:54
@shaper shaper requested review from gr2m and mclenhard October 13, 2025 04:55
@shaper shaper marked this pull request as ready for review October 13, 2025 04:55
@shaper shaper force-pushed the 10-12-feat_provider_gateway_add_user_and_tags_provider_options branch from 78f6774 to ea0ecc7 Compare October 13, 2025 22:08
@shaper shaper merged commit 0a2ff8a into main Oct 13, 2025
19 checks passed
@shaper shaper deleted the 10-12-feat_provider_gateway_add_user_and_tags_provider_options branch October 13, 2025 22:17
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)
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Oct 13, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Oct 13, 2025

✅ 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants