Replies: 1 comment 4 replies
-
Hello @samchouse! I'm here to help you with any bugs, questions, or contributions you have. Let's dive in and solve this issue together! To pass the user ID in a runnable for usage tracking when using LiteLLM, you can include the user ID in the await someRunnable.invoke(someInput, {
runName: "myRun",
tags: ["tag1", "tag2"],
metadata: {
userId: "your_user_id_here",
key: "value"
},
// ...
}); Make sure to replace To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to call a a runnable and pass the user ID like I would usually in an OpenAI SDK call for usage tracking. I'm tracking through LiteLLM. How do I do that in a runnable?
System Info
Beta Was this translation helpful? Give feedback.
All reactions