Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Repeated "Error: API Rate Limit Reached" messages when running the script Issue: I have tried running Auto-GPT from the master branch. Commit-hash: a0f900f2dabd114f80d5e96ecc6269a744dfc99a Pip version: pip 23.0.1 Python version: 3.11.3 The issue occurs when running the script using the following command: python scripts/main.py #1047

Closed
1 task done
ibaleve opened this issue Apr 13, 2023 · 8 comments
Labels
API access Trouble with connecting to the API

Comments

@ibaleve
Copy link

ibaleve commented Apr 13, 2023

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

Clone the Auto-GPT repository.
Install the required dependencies.
Run the script using the command: python scripts/main.py

Current behavior 😯

The script repeatedly shows "Error: API Rate Limit Reached. Waiting 10 seconds..." messages and does not seem to progress.

Expected behavior 🤔

The script should run without encountering API rate limit errors, or it should handle the rate limits gracefully and continue running after waiting.

Your prompt 📝

No specific prompt was used

@skynet01
Copy link

skynet01 commented Apr 13, 2023

This happens if you are on a free account with OpenAI (This is separate then ChatGPT Plus that you may have), you have to add your billing info and it will start working. I wish this was documented in the readme, I think all of us went through this.

@ibaleve
Copy link
Author

ibaleve commented Apr 13, 2023

I'm not on the a free account I have ChapGPT Plus

@ibaleve
Copy link
Author

ibaleve commented Apr 13, 2023

I understand what you saying now @skynet01 I had to do some research. Thanks

@jiangjun0105
Copy link

@ibaleve Here is the official docs on rate limit from OpenAI

Can we close this issue?

@dablurr
Copy link

dablurr commented Apr 13, 2023

Upgraded on a GPT4 plan, went ahead and re generated my keys. Added my key but I am still running upon the same issue. am I missing some steps or something ?

@noammo-max
Copy link

noammo-max commented Apr 13, 2023

ok found it,
you need to go to your account in openai.com and then you can see that you are still on a free account, apparently its separate @dablurr

@JuroOravec
Copy link
Contributor

Duplicate of #1189. @ibaleve would you close this one issue if it indeed is the same thing?

(I had this issue too - It's that we haven't opted into "paid account" on OpenAI's billing page. The auto-gpt.json is a red herring - it's a last messag we see, but it's unrelated to the API limit reached, the script can work without the auto-gpt.json)

I'm making an MR as we speak to update the README section on OpenAI's API key, to make this clear.

@Qoyyuum
Copy link
Contributor

Qoyyuum commented Apr 16, 2023

  1. upgrade to a paid account: https://platform.openai.com/account/billing/overview
  2. ChatGPT+ != paid account.
  3. add a payment method: https://platform.openai.com/account/billing/payment-methods (optional) set my usage limits: https://platform.openai.com/account/billing/limits
  4. create a new API key: https://platform.openai.com/account/api-keys (old API key did not work, i guess it was not update with my payment information automatically)
  5. replace the value for the autogpt/.env files's OPENAI_API_KEY.

Closing issue.

@Qoyyuum Qoyyuum closed this as completed Apr 16, 2023
@anonhostpi anonhostpi added the API access Trouble with connecting to the API label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API access Trouble with connecting to the API
Projects
None yet
Development

No branches or pull requests

8 participants