Streaming Chat

Build a ChatGPT style chat where the assistant reply streams in a little at a time, the input locks while it streams, a Stop button ends it mid way, and the view auto scrolls to the bottom.

Asked in OpenAI frontend interviews