I am a Dev
I am a Dev8mo ago

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
Nick
Nick8mo ago
#🎏-rfc-streaming there’s an RFC around this You could try subscriptions in the meantime though
I am a Dev
I am a Dev8mo ago
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
More Posts