How to simulate Open AI's word by word stream works in the backend? - Theo's Typesafe Cult