@suspicious_cow, might you have any insights on how to extend the event handler to be able to pass the tokens along through a websocket or SSE connection? I want to consume the stream in my backend, and forward the tokens via the on_text_delta(…) method using the event handler.
Based on your experience, does that seem advisable or even possible?
For reference, here’s a sample of what I’ve tried: