Issue with Assistant API - “Cannot Add Message to Thread Due to Active Run”

Active runs? Do you mean https://api.openai.com/v1/threads/{thread_id}/runs

I’m not aware of a function that would show ‘active runs’ - just ‘runs’ on a thread?
You screen shots shows ‘pending’ as an empty array which might be for ‘queed’ runs?
Runs can have these statuses:
queued , in_progress , requires_action , cancelling , cancelled , failed , completed , incomplete , or expired
https://platform.openai.com/docs/api-reference/runs/object

So I would expect the message to be correct (ie there is an active run). You could also try/confirm this by cancelling the run specifcally and then retrying. Or waiting - since the run will time out as well automatically :slight_smile: