Can't add messages to thread while a run is active

the function get_answer is creating the message before checking status, I don’t think the beta supports subscriptions yet, so the async likely returns a status of “in-progress” once. For now a loop works, on each loop retrieve the runInfo, with a little sleep, and only when the status is equal to complete create new message this is what worked for me

2 Likes