I am trying to do streaming with a free template I found and store in firebase.

Troubleshooting

https://marketplace.flutterflow.io/item/asfMz5Om0QGL75QSClpg I am using this free template but I want to do streaming with chatgpt. I have the cloud function it works but I'm not sure how to structure things because its querying messages documents which won't show the server side json data coming from chatgpt in real time. Hoping you guys could help me with this. what changes would you make to the template?

What have you tried so far?

I've looked at the documentation. I am a bit confused on what on close does and if I should use that or something else? Please someone point me in the right direction it would be much appreciated. My initial thought is to use page state than create document once its done using page state variable and than clear page state or something prob won't work lol but worth a try.

Did you check FlutterFlow's Documentation for this topic?
No