You are creating a new stream with a new event id with each message.
So you have a new stream for every speech bubble? Is that the right way?
What if the user enters a new message while Chat GPT is responding. Then several listeners run simultaneously.
Wouldn't it be better to initialize the stream only once and then update it in some way?
You are creating a new stream with a new event id with each message.
So you have a new stream for every speech bubble? Is that the right way?
What if the user enters a new message while Chat GPT is responding. Then several listeners run simultaneously.
Wouldn't it be better to initialize the stream only once and then update it in some way?