AutoGPT: RuntimeError: Failed to get response after 5 retries

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

I am on Mac.

No problem with the installation process, very smooth. I followed the instructions and input my openai api key as well as pinecone api key and region code.

I managed to start the agent and gone as far as entering the 5 goals.

It gave me a warning of no auto-gpt.json, believe it is not a big deal.

However after a minute of waiting, it reports

RuntimeError: Failed to get response after 5 retries

what is it and why do I get it?

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 12
  • Comments: 21 (3 by maintainers)

Most upvoted comments

You need a paid account in OpenAI, fixed for me

There’s an issue of one OpenAI API key in the shell environment and a second one in the .env file, and the code is using the first one.

We should print the first few characters of the license key to console to avoid this.

Made a PR https://github.com/Torantulino/Auto-GPT/pull/1304 to make it clear in the README that one has to opt in to the OpenAI’s paid account (and add billing info) for the OpenAI’s API key to work, which seems to be a common cause for the API Rate Limit Reached. Waiting 20 seconds error

There is a paid ChatGPT account and there is a paid OpenAI API account. You need to have the second one.

This can use some love:

  • Print the first few characters of the API key in the log for debug purposes
  • Detect (if possible) lack of API access and throw a descriptive error for that

Same issue, I have a paid OpenAI API acc but still got the issue.

Update: I start a new terminal and it works now.

run python scripts/main.py --debug and check the results