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

✖ TypeError: Cannot read properties of undefined (reading 'value') #91

Open suchcodemuchwow opened 1 year ago

suchcodemuchwow commented 1 year ago

I started to get this error since yesterday not sure why it is ? The changes are committed successfully but operation fails:

Screenshot 2023-03-29 at 20 33 52
di-sukharev commented 1 year ago

should be fixed, update pls oc i -g opencommit

AlexisSerneels commented 1 year ago

Same here. Latest version.

eskruolis commented 1 year ago

Same

di-sukharev commented 1 year ago

what do you see when run git remote?

di-sukharev commented 1 year ago

try to update pls npm i -h opencommit@latest

mgatorr commented 1 year ago

A similar error here -> └ ✖ TypeError: Cannot read properties of undefined (reading '0') It's given when the diff contains SVG files added. Is it related?

github-actions[bot] commented 1 year ago

Stale issue message

kejianlin commented 1 year ago

@MarioGT90 I had a similar issue like yours. Could you please share how you resolved it?

kejianlin commented 1 year ago

@MarioGT90 OCO_OPENAI_BASE_PATH=https://api.aikey.one/v1, Add /v1 after the API. Source code:

... createChatCompletion: (createChatCompletionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { const localVarPath = /chat/completions; const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); }), ...