❌ LLM Call Failed │ │ Error: litellm.RateLimitError: RateLimitError: OpenAIException - exceeded quota for this month

:cross_mark: LLM Call Failed │
│ Error: litellm.RateLimitError: RateLimitError: OpenAIException - exceeded quota for this month. Not able to complete the course due to this. What are the options here ?

Sorry, I’m not a mentor for that course, and DL.AI staff is out of the office for the holiday season.

I’m not sure if there is anything you can do to fix this.

Perhaps someone from the community will have a suggestion.

are you running codes on platform or locally.

such error comes openapi key has user limit access per month, you need to wait for the next month cycle. or probably try after 24-48 hours see if it works.

This is guthub repo tells about this error, (you either pay for open API key personal, or the reason mentioned is not request tol many times in a minute

So I guess try after 48 hours cycle, see if it works

Hey there @vens, as others have said, you have exceeded your openAI quota for the month. Once the next month starts you should get new credits allocated.
Are you taking the course on Coursera or the DeepLearning platform? If you give me your email (the one you used to register ) I’ll see what I can do, but given that most of the team is away for the holidays I can’t promise a fast solution.

Another thing you can do is use your own API key for openAI, the labs should be well within the free monthly limit. You can create one by signing in here.

Then, in the notebooks, you would need to replace the line os.environ[“OPENAI_API_KEY”] = get_openai_api_key() with:

os.environ[“OPENAI_API_KEY”] = "<your_api_key>“
os.environ[“OPENAI_API_BASE”]=“``https://api.openai.com/v1”

For the graded assignments, you need to create a new cell (you can’t edit the one provided). Please comment out the new lines before submitting.