Reciving data sequentially from gpt

hi everyone

How can I receive the information from chatgpt sequentially to show it little by little on the screen as the web of: “chat.openai.com” does?

Im using python openia module

Thanks a lot

Welcome to the forum. You want to set stream=true…

https://medium.com/codingthesmartway-com-blog/stream-responses-from-openai-api-with-python-a-step-by-step-guide-1f5d2fa5926f

Hope this helps…