Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Create Stream on each message? #5

Open
desmeit opened this issue Nov 21, 2023 · 1 comment
Open

Create Stream on each message? #5

desmeit opened this issue Nov 21, 2023 · 1 comment

Comments

@desmeit
Copy link

desmeit commented Nov 21, 2023

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?

@iqfareez
Copy link
Owner

I agree with you. Creating stream every time the user send a message is not the best practice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants