Encountering Error while content stream from OpenAI API

You can accomplish this on both the client & server by using the Streams API. (optionally) Use the back-end to set a transform for the stream (mainly filter out the client-useless data) and then pass the Reader object down to then consume and stream on the client-side.

1 Like