di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.12k stars 328 forks source link

Request failed with status code 429 #66

Open desyatkov opened 1 year ago

desyatkov commented 1 year ago
◓  Generating the commit message.
│
└  ✖ Error: Request failed with status code 429

Introducing a minor modification (adding two new rows) to a compact file, which consists of approximately 25 lines of code, results in an error.

jaskaran-bmninfotech commented 1 year ago

I have same issue

valdo99 commented 1 year ago

i'm getting the same response

enesmalikozer commented 1 year ago

I have same issue too

shayki5 commented 1 year ago

https://help.openai.com/en/articles/6891829-error-code-429-rate-limit-reached-for-requests

di-sukharev commented 1 year ago

This error message indicates that you have hit your assigned rate limit for the API. This means that you have submitted too many tokens or requests in a short period of time and have exceeded the number of requests allowed. This could happen for several reasons, such as:

To resolve this error, please follow these steps:

MakFly commented 1 year ago

sorry man , but i have a same problem

valdo99 commented 1 year ago

for me was that i did not have anyumore free credits, so i needed to upgrade to a payed plan, onw i did that i was able to use the api. hope someone will find this helpful :)

PierreThiollent commented 1 year ago

Hi guys, I have the same error message. So I checked my OpenAI quotas and I saw that I had used $0.03 of my $18.00 free credits. So I did not reach the free limit. Anyone have an idea why have this 429 error ?

jesusidev commented 1 year ago

Try generating a new key and using the new key.

franyoadam commented 1 year ago

Hi guys, I have the same error message. So I checked my OpenAI quotas and I saw that I had used $0.03 of my $18.00 free credits. So I did not reach the free limit. Anyone have an idea why have this 429 error ?

I have same problem! Has it been resolved since then?

PierreThiollent commented 1 year ago

Hi guys, I have the same error message. So I checked my OpenAI quotas and I saw that I had used $0.03 of my $18.00 free credits. So I did not reach the free limit. Anyone have an idea why have this 429 error ?

I have same problem! Has it been resolved since then?

No, I tried to generate a new key and use it but the problem was the same. Then I noticed that into the Usage panel of my OpenAI account the free credits that I had expired the 1st April... 😞

franyoadam commented 1 year ago

Hi guys, I have the same error message. So I checked my OpenAI quotas and I saw that I had used $0.03 of my $18.00 free credits. So I did not reach the free limit. Anyone have an idea why have this 429 error ?

I have same problem! Has it been resolved since then?

No, I tried to generate a new key and use it but the problem was the same. Then I noticed that into the Usage panel of my OpenAI account the free credits that I had expired the 1st April... 😞

Ooooh, I have that too, thank you.

Johannes-Ptg commented 1 year ago

Thanks! I had the same issue and upgraded to a paid plan. Now it works!

Is there any other way of extending or getting more free credits?

TiagoFuelber commented 1 year ago

I have an openai plus paid account and I am facing the same issue.

mipsou commented 1 year ago

Check date are not expired image

bdoussaugoldenbees commented 1 year ago

I generated an openai key and I get the same message at the FIRST use

Yagasaki7K commented 1 year ago

Same message on the first use.

mipsou commented 1 year ago

I confirm with debug

image

codevski commented 1 year ago

Same issue only used $0.25 of $18.... guessing its a bug?

zen0bit commented 1 year ago

Same here, usually if I want commit more files together

dukeofsoftware commented 1 year ago

İf your free trial usage expired, you can not use

zen0bit commented 1 year ago

$0.63 / $18.00

dukeofsoftware commented 1 year ago

at usage deteails if free trial usage didn't expired you can use at below image free trial has not expired yet image

at below image free trial expired. If you have another phone number you can get new free trial but just $5 image

you can check here

SeeYouh commented 1 year ago

hello all, I have the same problem as most people here. I have a premium ChatGPT account, but if I understand correctly, I need to purchase additional access to the API in order to use Open Commit? When I log into the API to check my free credits, it shows 0$/0$. Thank you for your clarification.

game2 commented 1 year ago

hi, i dont think is only related to credit, i have a paid account and sufficient credit and getting same error. Generated new api key, and same. Lets see.

di-sukharev commented 1 year ago
  1. try to commit smaller changes: not 10 files at once, check if you try to commit a huge freshly created file that exceeds the token limit
  2. make sure you actually have API access to the model you use, gpt+ doesnt mean you have all the models available
  3. make sure you have free credits, if so—you should attach a bank card to the API

please share your experience trying this 2 things above

github-actions[bot] commented 1 year ago

Stale issue message

jlopezlira commented 1 year ago

This is an error with your OpenAI account related to credits and subscriptions. To resolve it, please check if you have an active billing plan with your credit card (even if you have one added, you must have an active billing plan). You can verify this in your account. I've attached an image for reference.

Screenshot 2023-10-17 at 2 01 47 p m

Once you have an active payment plan, generate a new secret key.

With your new key, update your configuration with the following command oco config set OCO_OPENAI_API_KEY=YOUR_NEW_KEY

github-actions[bot] commented 11 months ago

Stale issue message

github-actions[bot] commented 10 months ago

Stale issue message

JackMostert commented 10 months ago

In cause any one else is still having issues with this;

Try adding the .opencommitignore to your repo and add the ./node_modules folder to it (or any other folder/file used by your package manager);

This solved the issue of the 429 error message for me.

github-actions[bot] commented 8 months ago

Stale issue message

nycterent commented 8 months ago

first run, same issue

h-campos commented 8 months ago

This is an error with your OpenAI account related to credits and subscriptions. To resolve it, please check if you have an active billing plan with your credit card (even if you have one added, you must have an active billing plan). You can verify this in your account. I've attached an image for reference.

Screenshot 2023-10-17 at 2 01 47 p m

Once you have an active payment plan, generate a new secret key.

With your new key, update your configuration with the following command oco config set OCO_OPENAI_API_KEY=YOUR_NEW_KEY

Works for me, thanks :)

danieldanielecki commented 5 months ago

Oh God, the new version is now oco instead of oc in the CLI + it expects different keys (OCO_OPENAI_API_KEY,OCO_EMOJI - those were different) in vim ~./opencommit...

danieldanielecki commented 3 months ago

Fixed this finally by setting OCO_AI_PROVIDER='ollama' in vim ~./opencommit... somehow it stopped working again, even though my usage was 0 last couple of months. No need to use OpenAI's API keys anymore.

renatocron commented 3 months ago

Even with Tier 2 and using GPT-4o, on large commits I still get rate limit

Rate limit reached for gpt-4o in organization org-o33O3h7YT70021z64i6uP5JF on tokens per min (TPM): Limit 30000, Used 27736, Requested 3818. Please try again in 3.108s. Visit https://platform.openai.com/account/rate-limits to learn more.'

It would be nice to handle this graceful instead of losing al the work done so far.

Using ollma could work, as it all done locally but would be very slowly if using a decent model

krynnotaur commented 1 week ago

Your website is still broken, and throwing these errors on new machines that have made ZERO CONNECTIONS to it.

di-sukharev commented 1 week ago

@krynnotaur what website dude?

jlopezlira commented 1 week ago

@di-sukharev I’m not sure if this is what it refers to, but in recent days I’ve seen a message from Cloudflare indicating that the instance is over its capacity limit.

The message (error) is strange because it appears when many changes are sent through open commit. I’m not clear on how to reproduce it, but I’m still investigating where the message is coming from.

di-sukharev commented 1 week ago

@jlopezlira opencommit doesnt have any proxies like cloudflare or else, it goes directly to an api provider (openai or anthropic), so it's probably cloudflare firewall at openai side, please lmk when you find source of the error