There are two different solutions for live text streaming with using Dash and OpenAI API in this repository.
In this example, I used set_props which is a background callbacks subject in Dash. This solution is not cool, because it has high latency. So, texts are loading chunk by chunk as you can see below:
In this example, I used flask_socketio and dash-socketio. This is cool solution because websocket is better solution for live streaming. Texts are loading word by word as you can see below: