I have created a chat module and I am using assistant api and thread to manage user chats. Currently I am creating new thread for new users only, and using existing threads for existing users.
Now it is very difficult to manage chat session for single user if he create multiple chats in same thread.
One idea is, if I can create new thread for each session but give the reference of previously created threads to new thread for the same user. So chat gpt can use the previous thread data and answer in same context. but I am unable to find the way of referencing previous thread in new thread.
Can anybody help me?
Thanks in adance.
Saurabh