IMO Ollama's streaming API is much nicer, but here's an example repo for streaming #OpenAI inference from a request with zero dependencies in #JavaScript.
https://github.com/RangerMauve/openai-streaming-generator
Escape ship from centralized social media run by Mauve.