ChatGPT - Server Sent Events SSE
Hi y'all,
I'm trying to replicate ChatGPT using their less powerful GPT3 apis.
It turns out ChatGPT is doing SSE under the hood so that you don't get 10+ seconds of nothing on screen.
But I couldn't quite figure out how to do the 'typing animation', aka GPT's message updating on screen as it comes in.
Mine only shows the final message, which kinda defeats the purpose.
Any help is appreciated 🙏
Here's the code:
event3.tsx
:
event3.ts
:
0 Replies