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

Error: Unsupported config key: sk-iQixtQCJ61k8jbqsENVnT3Bl**************** #12

Closed paivaric closed 1 year ago

paivaric commented 1 year ago

Error running config api key command:

opencommit config set sk-iQixtQCJ61k8jbqsENVnT3Bl****

┌ opencommit — config │ └ ✖ Error: Unsupported config key: sk-iQixtQCJ61k8jbqsENVnT3Bl****

vladickweb commented 1 year ago

You are typing the command incorrectly. Instead of opencommit config set sk-iQixtQCJ61k8jbqsENVnT3Bl**************** it should be opencommit config set OPENAI_API_KEY=<your_api_key> In your case, it should be opencommit config set OPENAI_API_KEY=sk-iQixtQCJ61k8jbqsENVnT3Bl****************

di-sukharev commented 1 year ago

@paivaric but make sure you change ***** with real numbers. You basically need to get API key from openAI and paste it instead of <your_api_key> in opencommit config set OPENAI_API_KEY=<your_api_key>

di-sukharev commented 1 year ago

are we done here?

paivaric commented 1 year ago

@di-sukharev The ** are to mask the real key. I put the right one when configuring.