Can I configure different keys for each user in the ai sdk? #4948
Unanswered
NeroBlackstone
asked this question in
Help
Replies: 1 comment
-
Yes, you need to create a new provider instance (pretty lightweight) for every request and set the user api key, see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, each user has his own openai api key, and the ai sdk uses the key corresponding to each user to request the llm server instead of using a unified key.
Is this possible???
Beta Was this translation helpful? Give feedback.
All reactions