How to return a stream? like open ai api
I want that my api can have stream responses like open ai
https://github.com/openai/openai-node#streaming-responses
how can i do it?
Thanks
2 Replies
#🎏-rfc-streaming there’s an RFC around this
You could try subscriptions in the meantime though
Thanks, I will check it.
Meantime, how can I make each subscription return a different value for each request?
for example, each chat completion request must be different for each user, and only each user can listen the response.
Thanks