di-sukharev / opencommit

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

I can't figure out what internal error is #3

Closed GuardianOfGods closed 1 year ago

GuardianOfGods commented 1 year ago

image

brunoricardosecco commented 1 year ago

Same here 🤔

di-sukharev commented 1 year ago

guys, do opencommit config set OPENAI_API_KEY=<your_api_key> and update the lib with npm i -g opencommit

more details on how to get api key from openAI here

mikkelhartung commented 1 year ago

Also, remember to add a payment method in OpenAI folks 💸 It would make sense to make this section in the docs a bit more clear about this.

brunoricardosecco commented 1 year ago

@mikkelhartung is it necessary to add a payment method? If the answer is yes, that's my error I guess

mikkelhartung commented 1 year ago

@brunoricardosecco OpenAI is a pay-as-you-go service, so I would expect that the account that the API key is attached to should have a payment method in order for it to work 😄

I got the same error initially, but then added payment information and after a few minutes I was up and running.

brunoricardosecco commented 1 year ago

Thank you so much!

GuardianOfGods commented 1 year ago

I already setup the config, I try to commit another code with short feature and it works. It's show "Internal Error, try again" even when I forgot to pull from remote. But here is another error and i still don't know what error is.

di-sukharev commented 1 year ago

there is some error handling, update the package npm i -g opencommit

GuardianOfGods commented 1 year ago

Now I can see the error. Because of causing too many request so it can't generate the commit. I add 1 package in project but open ai can't summary, I think it belong to Open AI problems. Hope Open AI can do it better or you can do it better. If there are no more argument about the issue, I will close this. Thanks a lot for the helping.

di-sukharev commented 1 year ago

@GuardianOfGods close pls <3