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

Infinite loop setting the key #4

Closed jucasoliveira closed 1 year ago

jucasoliveira commented 1 year ago
Screenshot 2023-03-10 at 15 50 51
fatihmert commented 1 year ago

I solved like this;

  1. Create ~/.opencommit
  2. Add your key like .env format to into the that file
OPENAI_API_KEY=sk-##################
emoji=true

save file after then try again set config command.

di-sukharev commented 1 year ago

solved in new build, pls run npm i -g opencommit <3

jucasoliveira commented 1 year ago

It solved, thanks!