Find answers from the community

Updated 3 months ago

Hi there! I am using `AzureOpenAI` class

Hi there! I am using AzureOpenAI class to perform a simple request. The problem is that even if I define the max_retries=0 parameter, it doesn't take effect when a BadRequestException occurs due to Azures [hate/violence/sexual/self-harm] filtering
Attachment
image.png
L
1 comment
this is likely due to the tenacity retry decorator

Its hard to make a decorator configurable. Been meaning to make the errors that it retries on less general
Add a reply
Sign up and join the conversation on Discord