-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAI Assistant creating new thread everytime #9399
Comments
Hey @yuri12344, I am not fully following what the issue is here, Are you able to provide an example workflow? I would kind of expect any thread history to only be available when using the chat option or memory which it sounds like is working as expected. It would be interesting to see what you are actually doing so we can work out if it should use an existing thread or not. |
@Joffcom I have made a video about it, I think it shows better, just 3 mins videos, check it out please |
Just simple workflow |
Agree. This is an issue. Same Chat should not create a new Thread in OpenAI. |
I have taken a quick look and I can see the issue, When using chat the node takes the inputs in a different way as we expect the session / thread to be stored / used but on manual messages we don't currently support passing in that input. Technically this is a feature request not a bug as it is working as intended but I have created |
But this also happens when using the chat model. This model removes the memory element because history is stored in the thread openai |
Hey @gvargas9, Is that when using the chat model with the AI Assistant? Looking at the video when using the chat input with the assistant it appeared to remember the name. |
I have just reaslised that this is actually a duplicate of an existing feature request which can be found here: https://community.n8n.io/t/memory-functionality-missing-from-openai-assistant-node/34747/17 As this exists on the forum and to save on duplication I am acutally going to close this issue and I will link the feature request to the internal ticket. |
Bug Description
When I chat open ai assistant, with chat + send message to assistant, it works fine, but when I try to use it without chat, even if I pass same variables as chat, he keep creating new threads, and never keep to the same thread.
To Reproduce
Expected behavior
It should continue in same thread and keep conversation
Operating System
Ubuntu
n8n Version
Latest
Node.js Version
20
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: