-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
feature requestNew feature or requestNew feature or request
Description
Setting a custom user agent is considered best practice and would help debug problems in case any occur. As far as I can tell, ai
is not setting a custom user agent right now.
The user agent should include the most important versions of ai
and @ai-sdk/*
packages, and user should be able to add their own custom header to it.
Octokit's implementation worked out well over the years:
https://github.com/octokit/core.js/blob/9c425e32f001330786925c0a1d3c47dbcb20103f/test/request.test.ts#L53-L73
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request