OpenHands
OpenHands copied to clipboard
feat(frontend): typing chat feature | for #187
for #187 Print terminal and chat output character by character
changes:
- created hook - useTypingEffect
- modified chatInterface - created a new jsx typing chat
- chatSlice - exported Message type
preview (using mock server):
This looks awesome!
LGTM but I will let frontend folks look
@rbren In the future, should we make the typewriter effect available on the backend? For example using SSE (Server-Sent Events) implementation?
IMO it's something for the frontend to handle as it wants--the backend shouldn't concern itself with how data gets displayed.
That said, many of the LLMs offer a "streaming" response, since response generation is slow. So we could stream data to the frontend as it becomes available, rather than waiting for the entire response to buffer and then typing it out.
So I guess the answer is "we should do both"
I have resolved the merge conflicts .
oof I tried it out
actually its w-4/5
thats causing this
LGTM. Thank you!