Chat UI with multi-line input and word-by-word streamed replies

Build a fully interactive ChatGPT-like chat UI that streams AI assistant responses word-by-word or character-by-character, just like the real ChatGPT experience. The chat should support multi-line messages, animated streaming for GPT responses, and a clean user interface for both user and AI messages. As the AI “types,” each word (or character) should appear in sequence with a short delay, mimicking the streaming effect of modern AI chatbots.
setTimeout/setInterval) for each word/character. Use any canned reply, e.g. In response to "<message>": ....\n as new lines).
- User types: "Tell me a joke" and presses Send.
- Their message instantly appears on the right.
- GPT "types" its reply word by word with a fade-in animation.
- Loading indicator shows while GPT is streaming.
The tests type into your message box, click Send, and read the text on the screen, like a real user would. You don’t need test ids, specific class names, or an exact HTML structure. They only check that:
<textarea> or <input>) has a label, aria-label, or placeholder containing “message” or “ask” (e.g. “Ask anything”).setTimeout/setInterval for the delay and finish streaming within 30 seconds.