Enhancement: send user name / user id + Conversation thread id to litellm #2110
Replies: 2 comments 4 replies
-
User ID is already getting sent by default. Check the incoming request on litellm side: https://docs.librechat.ai/install/configuration/custom_config.html#breakdown-of-default-params
LibreChat already uses the Assistants API but I suppose you have a different use case. The thread_id's are stored in messages when using Assistants through LibreChat. However, I don't see the point of doing this if you are managing assistants outside of LibreChat |
Beta Was this translation helpful? Give feedback.
-
I have the same use case. My custom endpoint is an openapi-compatible service that itself uses the OpenAI Assistants API with specficic function calling tools, vector db, etc. Because of this I need to be able to keep track of a thread identifier. Perhaps this could be tracked in a request/response header? |
Beta Was this translation helpful? Give feedback.
-
What features would you like to see added?
Hi,
I am developing a SaaS with LibreChat & Litellm. It would be really beneficial to pass a user id and a conversation thread id to litellm.
Use cases for the user id : monitoring token usage by user
Use cases for the conversation thread id : I am developing with the openai assistant API inside Litellm, and I need to keep track of the conversations, so with a conversation thread id I could make a mapping between what's inside the UI and what OpenAI requires.
If that's not in your priorities, that's fine, I understand. If you could at least point me into the right direction in the code base, I'll implement the features and share them with you if you want.
Best regards,
Paul Irolla
More details
N/A
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions