WaspW
Wasp12mo ago
Davius

Streaming Text From OpenAI : Best Approach?

Hi there! As the title mentions, I am looking for ways to implement a text streaming chatbot in Wasp. However, the only example I could find on streaming text was done through API, and the user seems to have a bit of trouble tying it to a button on the frontend. Not sure if I can do it with Async Generator / Event Emitter / Websocket / Other Methods.

I can probably work it out with enough time. Still, I want to ask for some advice from people who are more familiar with wasp, as text streaming feels like a common feature. Which would be the easiest option? Is there some native support or tools that I'm missing?
Was this page helpful?