Szekeres GézaS
BuildShip2y ago
7 replies
Szekeres Géza

Streaming assistant in Loop

Hi, If I use the default OpenAI Assistant (Stream Response) node in Loop, it seems like it ain't wait the stream to finish and it submits the next message even if the first streaming (and run) is still running.. I works as single node, without loop, but in loop it gives multiple run error.. Please help!
image.png
Solution
@Gaurav Chadha I have updated your Streaming Assistant node, added Promise for Stream Handling and now the function assistant awaits the handleStream completion.. please check and consider update so others could use this as well:
Was this page helpful?