shell_gpt: Too Many Requests for url error
When i’m using the cli, its giving me this error
HTTPError: 429 Client Error: Too Many Requests for url: https://api.openai.com/v1/chat/completions
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (2 by maintainers)
No, you don’t need a paid membership to use
sgpt. If you haven’t exceeded your limit and you’re receiving a429: too many requests for URLerror, this typically means OpenAI is experiencing high traffic and server overloads, just retry your requests after a brief wait.I have tried 6 or 7 times over a period of two days and got the same 429 error every time. As a matter of fact I was not able to get a reply even once, yet accessing it through the browser works. So I’m thinking there is some other problem.
So the conclusion is if the trial credit provided is finished, we need to use the paid version of ChatGPT to be able to use ShellGPT?
Just a shot in the dark, but have you tried refreshing the API token to a new one ? Just in case that one was tied to the free tier ?
ChatGPT Web service and OpenAI Account (API) are two different services. Just because ChatGPT can reply to content doesn’t mean the API can. You need to check the API usage.
You don’t need to have a paid account to use sgpt provided the free trial credit given is still valid and has not been used up (and this would not be replenished every month). Otherwise, you have to be a paid member. I had the same issue. Requests made through sgpt were returning 429, since my free trial credit has expired. Once i converted to a paid account (charged on per use basis), my requests were coming through successfully.
We have some information regarding to this ussue on our wiki page.
That makes sense, but I have not used ChatGPT in over 2 months, so my free tier account should be ‘fresh’ with the unused 20-request limit per minute.
After installing ShellGPT and trying an example, I get the 429 error immediately. I’ve tried 4 example requests in the past 10 minutes, all with the same error.
So I do not believe at this point it is a limit-per-minute issue.
ADDENDUM: I just checked my account, and apparently the ‘free trial’ expired on Jan 1, 2023, and I had only used 0.01 out of $18.00 granted to me. And the expired data usage is confirmed when I tried to make a request via the ChatGPT website, and got ‘You’ve reached your usage limit.’ 😦
Will add some funds and try again.
ADDENDUM 2: Added a creditcard so that I am billed at the end of each month. I still receive the Too Many Requests error. Would I need to ‘restart’ or refresh ShellGPT somehow so that the new limit is recognized?
It seems you are using free version of ChatGPT which restricts frequency of API hits.
As per free-tier plan, one can have a 20-request limit per minute, with 150,000 tokens per minute. While paid users contain a rate limit of 60 RPM and 250 TPM in their first 48 hours. After 48 hours the rate limits of paid users turn to 3,500 RPM and 350,000 TPM.
Hope this answers the issue.