Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.09k stars 43.97k forks source link

API Rate Limit Reached. Waiting 10 seconds #79

Closed amrpyt closed 1 year ago

amrpyt commented 1 year ago

Error: API Rate Limit Reached. Waiting 10 seconds... Error: API Rate Limit Reached. Waiting 10 seconds... Error: API Rate Limit Reached. Waiting 10 seconds... Error: API Rate Limit Reached. Waiting 10 seconds... Error: API Rate Limit Reached. Waiting 10 seconds... Error: API Rate Limit Reached. Waiting 10 seconds...

simon0117 commented 1 year ago

I was on free trial for the API, maybe sign up to be billed? https://platform.openai.com/account/billing/overview

gourcetools commented 1 year ago

Fixed: Even if you are gpt+ you need to add a card to get a working key. demo keys dont work.

NitinNR commented 1 year ago

same here, any luck ?

lupuleasa-core commented 1 year ago

sadly, I try to add a card and it says card declined

I added a card to Pinecones and Elevenlabs, my card is fine

any issue on billing on openai side?

cmarabate commented 1 year ago

I'm getting this error the first time after running the AI, so there is no way I hit any limit. No idea what I am supposed to do. I have added all of these environment variables and left the rest how they were in the env.template file... PINECONE_API_KEY PINECONE_ENV OPENAI_API_KEY ELEVENLABS_API_KEY

NitinNR commented 1 year ago

Eleven labs api key is for voice assistant right ? If not entered then it will be fine am I right ?

lupuleasa-core commented 1 year ago

Yes, just dont use voice

What country are you guys trying to purchase GPT API?

From Romania: Doesn't work (card declined)

prashantwosti commented 1 year ago

After adding a card in https://platform.openai.com/account/billing/overview, the error got resolved. Make sure to fill up all the env variables too.

NitinNR commented 1 year ago

I am not using the paid gpt api will it work?

cmarabate commented 1 year ago

I'm confused. I have ChatGPT Plus does that get me access to the paid GPT API? I feel like it should.

NitinNR commented 1 year ago

I mean I don't have the gpt plus will it work for me ?

NitinNR commented 1 year ago

I'm confused. I have ChatGPT Plus does that get me access to the paid GPT API? I feel like it should.

Paid gpt mean gpt plus

lupuleasa-core commented 1 year ago

not chatGPT plus paid gpt API two different things

cmarabate commented 1 year ago

Then why am I hitting a API Rate limit when I haven't even gotten this to run without that error yet?

lupuleasa-core commented 1 year ago

After adding a card in platform.openai.com/account/billing/overview, the error got resolved. Make sure to fill up all the env variables too.

Have you managed to add a card? from which country?

for Romania it is declined

lupuleasa-core commented 1 year ago

Then why am I hitting a API Rate limit when I haven't even gotten this to run without that error yet?

The error is wrong

OpenAI likely added a new restriction and it is using an old error

you can check your rate limits here: https://platform.openai.com/account/usage

for me, I have plenty of limits in my free account

probably they limited free users due to botting

cmarabate commented 1 year ago

Yeah, mine says I still have all of my free trial usage left but I am still getting the API Rate Limit Reached error. image

lupuleasa-core commented 1 year ago

more on rate limits here: https://platform.openai.com/docs/guides/rate-limits/overview

I used GPT4 to summarize the article:

Since you have a free account, the rate limits for GPT-4 API are 20 requests per minute (RPM) and 40,000 tokens per minute (TPM) for Chat. Make sure you are not exceeding these limits. If you do exceed them, you will encounter rate limit errors.

If you believe that your usage is within the allowed rate limits and you are still encountering rate limit errors, there might be an issue with the API or your implementation. In that case, you can consider reaching out to OpenAI support for further assistance.

Keep in mind that attaching a card to your account might help you access higher rate limits, but you should still be able to use the API within the free account limits.

lupuleasa-core commented 1 year ago

I think the guys at openai stealthily removed free accounts from using the API

probably in response to other people botting and profiting off of it for free

prashantwosti commented 1 year ago

I'm confused. I have ChatGPT Plus does that get me access to the paid GPT API? I feel like it should.

@cmarabate I had the ChatGPT Plus sub too and it didn't let me make GPT-4 calls via API until I add my card to billing. I think they want to charge you as per your usage.

image
FiendFiFoFum commented 1 year ago

Then why am I hitting a API Rate limit when I haven't even gotten this to run without that error yet?

After inputting the card I had to generate a new API key and then it worked.

FiendFiFoFum commented 1 year ago

I think the guys at openai stealthily removed free accounts from using the API

probably in response to other people botting and profiting off of it for free

If you have been using chagpt for more than a month then your free credits to the API expired. See you usage in the billing details to confirm.

AndrewDonelson commented 1 year ago

not chatGPT plus paid gpt API two different things

This is the fix. I had GPT Plus, and $18 left on my API 20 credit. But in small print it said it expired in Dec 2022. Go to https://platform.openai.com/account/billing/overview and sign up for Pay as you go.

NitinNR commented 1 year ago

So there is no workaround for free usage???

lupuleasa-core commented 1 year ago

Ok, I found the original issue, and card issues are now resolved:

The original issue: The API credits were expired (Expired April 1, 2023), said so on the usage page https://platform.openai.com/account/usage

The card issues were related to OpenAI end, you can now add a card

You need to add a card and regenerate a key from what I can tell

holbizmetrics commented 1 year ago

I got the same problem as a paid user… still. Today.

Ok, found the issue:

have a look here:

Open AI Usage

I've you've already hit the limit (before the expiry date) then you can use it. If not, you need to set up a paid account...

P.S.: Sure, since Billy is in there, everything costs money all of a sudden.

ericytsang commented 1 year ago

yeah as y'all know, this error has something to do with OpenAI and ChatGPT 😄 image

i had to do the steps in this order:

  1. upgrade to a paid account: https://platform.openai.com/account/billing/overview
    • ChatGPT+ != paid account. i already had ChatGPT+, but I needed up upgrade to paid account
  2. add a payment method: https://platform.openai.com/account/billing/payment-methods
  3. (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.
timothyjohn35 commented 1 year ago

Even though I had GPT+ I still had to add my billing information and then once I made new API Key it worked

tkalevra commented 1 year ago

In Canada, after updating the debug error I encountered this. Added a card to openai, regenerated the key, and I'm in

Shafkathasan commented 1 year ago

msedge_4jkmUEi7wD Free trial Expiring is the main reason behind this problem. Add a payment method and try again with the new API key.

JuroOravec commented 1 year ago

Duplicate of https://github.com/Torantulino/Auto-GPT/issues/1189. @amrpyt 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)

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

p-i- commented 1 year ago

Looks like this is continuing in #1189 so closing