Skip to content
Discussion options

You must be logged in to vote

Absolutely, I believe the userId is passed to every tool on initialization already. This happens in api/app/clients/tools/util/handleTools.js within the loadToolWithAuth function.

See api/app/clients/tools/DALL-E.js and api/app/clients/tools/structured/DALLE3.js for reference, which use this value.

If you need more user info, you will have to mess with what is passed to loadTools and change the connecting layers of logic accordingly.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AMMJ93
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants