Tips
- Streaming responses are sent as Server‑Sent Events and end with a final
[DONE]line. - In browsers, you can cancel mid‑generation using an
AbortController.
View source on GitHub → 4_streaming_chat.py
See responses arrive in real time using stream=true
[DONE] line.AbortController.