Polling helpers for Runs in the Assistants API

We’ve added polling helpers to the Node + Python SDKs for Run objects in the Assistants API. If you’re not streaming, you can now use:

You can optionally specify a pollIntervalMs to change the polling interval (defaults to 1 second)


PS, don’t poll even two parallel non-stream runs at the same time at the default rate, as it will go over the 60 (now 100?) requests per minute given to API developers. AKA don’t deploy assistants as a product.

When will this be lifted, we wonder…

1 Like