Closed perryputtiapps closed 1 year ago
I see newlines in my streamed responses on v0.5.2. How are you displaying the content? If it's HTML you'll need to convert to <br>
.
You can verify they are there with: echo json_encode($response->choices[0]->delta->content)
Thanks, this is very helpful. :)
I have this snippet;
I'm getting the streamed content correctly but it's missing new line characters. Is there a way to show the line breaks / new line in the response content?