handing streams from Open AI is tricky, few resources which look useful https://january.sh/posts/real-time-openai-response-streaming-node-js https://rebeccamdeprey.com/blog/render-openai-stream-responses-with-react