opencommit
opencommit copied to clipboard
[Bug]: TypeError: Cannot read properties of undefined (reading 'OCO_OPENAI_BASE_PATH')
Opencommit Version
3.0.3
Node Version
v16..20.2
NPM Version
8.19.4
What OS are you seeing the problem on?
Other Linux Distro
What happened?
I am using Ubuntu 22.04 on WSL v2
When launch this command: oco config set OCO_OPENAI_API_KEY=APIKEY
I have this error: ┌ opencommit — config │ └ ✖ TypeError: Cannot read properties of undefined (reading 'OCO_OPENAI_BASE_PATH')
That problem was not presented before. Only when reinstall oco after a OS reformatting.
Expected Behavior
That I can set my openai api key
Current Behavior
There is an error when set openai api key
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output
No response
Me to on MacBook Pro M1
+1
Me too, MacBook Pro M2
Will fix this week
@di-sukharev Is there a temporary fix until it's fixed?
@di-sukharev Is there a temporary fix until it's fixed?
@AlexandrosMelissas For me setting up .env per repository works fine, there you can add your api key
+1
+1
+1
+1
Me too, Windows 10.
Opencommit Version
3.0.3
Node Version
v16..20.2
NPM Version
8.19.4
What OS are you seeing the problem on?
Other Linux Distro
What happened?
I am using Ubuntu 22.04 on WSL v2
When launch this command: oco config set OCO_OPENAI_API_KEY=APIKEY
I have this error: ┌ opencommit — config │ └ ✖ TypeError: Cannot read properties of undefined (reading 'OCO_OPENAI_BASE_PATH')
That problem was not presented before. Only when reinstall oco after a OS reformatting.
Expected Behavior
That I can set my openai api key
Current Behavior
There is an error when set openai api key
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output
No response
Me, too on MacBook Intel
```shell echo OCO_OPENAI_API_KEY=<your OpenAI API token> >> ~/.opencommit
.. will get things working.
Worked for me! Thank you.
getting to it tomorrow, too busy
@danielorozco06 @enesj @roonie007 hey guys, please install 3.0.4 and tell me if it works: npm i -g opencommit@latest
@danielorozco06 @enesj @roonie007 hey guys, please install 3.0.4 and tell me if it works:
npm i -g opencommit@latest
It works for me now, appreciated. 😄
@deividgp great <3
not working for me : 'OCO_OPENAI_API_KEY' name is invalid, it should be either 'OCO_OCO_OPENAI_API_KEY' or it doesn't exist. context: I'm using nvm
@StephaneLASOUR have you just updated to latest version from some really old one?
@StephaneLASOUR have you just updated to latest version from some really old one?
Yes I did, from 1.1.24
@StephaneLASOUR major versions are breaking changes, so you should remove ~/.opencommit
file and install and config everything again
Me to on MacBook Pro M1
Works now. Thanks.
Stale issue message