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

Did you find this page helpful?