Share via

Calling Azure OpenAI from within Python

Anonymous
2023-07-18T20:36:22.3366667+00:00

Hi, I just built python code to access to Azure OpenAI to understand how to invoke and run Azure OpenAI from Python. I've tried different model.engines like model_engine = "text-davinci-002" and model_engine = "text-davinci-003" and others but every time it hits the first line to invoke openai, I get an error "Exception has occurred: RateLimitError: you exceeded your current quota". I checked the quotas in Azure OpenAI Studio and none are maxed yet so I don't think that is the problem. What other limits are there?

Is it something else with Azure limits that is causing this or do I need to request a quota increase for Azure OpenAI models? They aren't maxed yet but I don't know what else is causing this issue.

Azure OpenAI in Foundry Models

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.