Streaming Response
A faster, smoother response that boosts user experience
Activating the streaming option alters the endpoint’s output to produce a sequence of JSON strings, each separated by a b“----” delimiter. (byte string ’---’) This facilitates real-time interaction and partial data utilization, enhancing dynamic application responses and user experiences.
The response chunk will look like this:
And the continuous response will look like this:
How to handle Streaming
Checkout the example on how to read a streaming response