Closed molinch closed 2 days ago
Thank you for reaching out, @molinch ! Looking at the stack trace, I see that you are using the Azure.AI.OpenAI library. This repo corresponds to the OpenAI library. Could you file this issue in the Azure repo instead? Here's a link: 🔗 https://github.com/Azure/azure-sdk-for-net
When you do, including the following information would be helpful:
Thanks a lot @joseharriaga, this feedback really helped me, I moved it there, https://github.com/Azure/azure-sdk-for-net/issues/44804 I will close this issue then
We have a rather big prompt, and a small rate limit of 1000 tokens/minute. Due to that combination we can invoke the OpenAPI endpoint only once every minute.
If we exceed that we get back such an exception:
We investigated deeper and the truth is that at first there is a 429 (due to rate limits), then I assume the client retries, which results in a 401, and then this exception.
It leads to very wrong investigations, as you think you have a 401, when it's actually a rate limiting issue. Now the big question would be why upon retrying it becomes unauthorized.