Closed GuardianOfGods closed 1 year ago
Same here 🤔
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
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.
@mikkelhartung is it necessary to add a payment method? If the answer is yes, that's my error I guess
@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.
Thank you so much!
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.
there is some error handling, update the package npm i -g opencommit
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.
@GuardianOfGods close pls <3