aicommits icon indicating copy to clipboard operation
aicommits copied to clipboard

I don't understand how to set the key

Open gans92 opened this issue 2 years ago • 11 comments

Screenshot_338

gans92 avatar Feb 18 '23 23:02 gans92

It's in Step 3 here: https://github.com/Nutlope/aicommits#installation-and-usage

We'll add a config command soon so it's easier to set this up.

privatenumber avatar Feb 18 '23 23:02 privatenumber

"echo "OPENAI_KEY=" >> ~/.aicommits"

this command inside the folder where the aicommits is this or in the project itself?, I tried both but it didn't work

gans92 avatar Feb 19 '23 00:02 gans92

Did you insert your API token where it says <your token>?

privatenumber avatar Feb 19 '23 00:02 privatenumber

yes

gans92 avatar Feb 19 '23 01:02 gans92

image got same problem which .aicommits is already set

coSevenSeven avatar Feb 21 '23 03:02 coSevenSeven

Will add Windows test

privatenumber avatar Feb 21 '23 03:02 privatenumber

Hey @gans92 and @coSevenSeven you might check this issue here: #67

AntoineKM avatar Feb 22 '23 12:02 AntoineKM

Hey @gans92 and @coSevenSeven you might check this issue here: #67

it works well, thanks! 👍

coSevenSeven avatar Feb 23 '23 01:02 coSevenSeven

Hey @gans92 and @coSevenSeven you might check this issue here: #67

thanks, I created the file manually with vscode and now everything is working.

gans92 avatar Feb 23 '23 01:02 gans92

I use aicommits in wsl, and aicommits config not work too, an other way to fix it, is export OPENAI_KEY=yor_key.

tooilxui avatar Feb 23 '23 03:02 tooilxui

Sorry, we haven't actually released the aicommits config command.

privatenumber avatar Feb 23 '23 04:02 privatenumber

Released in https://github.com/Nutlope/aicommits/releases/tag/v1.2.0

privatenumber avatar Mar 02 '23 00:03 privatenumber