OpenAI API: How to call list:messages workflow only if run status = "completed"

When I call list messages, the run status is always “queued”. So we need to have something like a loop to recall the status until its “completed”. But I have no idea how to do it. Can u help?

This topic was automatically closed after 70 days. New replies are no longer allowed.