Hey ya'll. Question:
I'm making a web app talking to a custom gpt assistant. I got everything working and whatnot, but I need the API calling highly optimized. Right now, this is how my system works:
I create a thread
I create a message
I run the assistant
Every 2,5 seconds I retrieve the message list to see if the AI answered, until I get an answer, then the polling stops
How can I just print out the answer as soon as it is done running. Is that even possible? I'm doing this in PHP