Build a chat input that renders a streamed AI reply
Build a minimal ChatGPT-like page: a text box and a submit button, and below them the model's reply, rendered as it streams back from the API rather than all at once. Handle the request, the incoming chunks, and the states of the page while a reply is in flight.
No answer yet. Write the first one; the best answer gets endorsed.
