Replacement for RateLimitError in AzureOpenAI 1.0.0+

Hello everyone!

I updated my Python code to use the new version of the OpenAI module.
The requests themselves work fine, including embeddings.

However I previously checked for RateLimitErrors, so I could wait before repeating my request. The new API no longer has openai.error.RateLimitError and I can’t find a replacement.

How can I handle rate limits in the new version?

Thanks in advance!

hello! did you figure this out?