← Questions

Build a chat input that renders a streamed AI reply

0
OpenAICodingLast asked Apr 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding