Hi there, when after I install and enter my API key, I get this response:
Running on mac m1 chip
__
<(o )__
( .> /
`---'
usage:
TerminalGPT will ask you to add your OpenAI API key. Don't worry, it's saves on your machine locally.
Terminal will prompt you to enter a message. Type your message and press enter.
Terminal will then prompt you to enter a response. Type your response and press enter.
To exit, type "exit" and press enter.
# Commands
node:internal/crypto/cipher:122
this[kHandle].initiv(cipher, credential, iv, authTagLength);
^
TypeError: Invalid initialization vector
at Decipheriv.createCipherBase (node:internal/crypto/cipher:122:19)
at Decipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3)
at new Decipheriv (node:internal/crypto/cipher:295:3)
at Object.createDecipheriv (node:crypto:149:10)
at decrypt (/usr/local/lib/node_modules/terminalgpt/bin/encrypt.js:23:27)
at getApiKey (/usr/local/lib/node_modules/terminalgpt/bin/encrypt.js:43:29)
at apiKeyPrompt (/usr/local/lib/node_modules/terminalgpt/bin/utils.js:9:16)
at Command. (/usr/local/lib/node_modules/terminalgpt/bin/index.js:24:5)
at Command.listener [as _actionHandler] (/usr/local/lib/node_modules/terminalgpt/node_modules/commander/lib/command.js:482:17)
at /usr/local/lib/node_modules/terminalgpt/node_modules/commander/lib/command.js:1283:65 {
code: 'ERR_CRYPTO_INVALID_IV'
}
Hi there, when after I install and enter my API key, I get this response:
Running on mac m1 chip
<(o )__ ( .> / `---'
usage: TerminalGPT will ask you to add your OpenAI API key. Don't worry, it's saves on your machine locally.
node:internal/crypto/cipher:122 this[kHandle].initiv(cipher, credential, iv, authTagLength); ^
TypeError: Invalid initialization vector at Decipheriv.createCipherBase (node:internal/crypto/cipher:122:19) at Decipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3) at new Decipheriv (node:internal/crypto/cipher:295:3) at Object.createDecipheriv (node:crypto:149:10) at decrypt (/usr/local/lib/node_modules/terminalgpt/bin/encrypt.js:23:27) at getApiKey (/usr/local/lib/node_modules/terminalgpt/bin/encrypt.js:43:29) at apiKeyPrompt (/usr/local/lib/node_modules/terminalgpt/bin/utils.js:9:16) at Command. (/usr/local/lib/node_modules/terminalgpt/bin/index.js:24:5)
at Command.listener [as _actionHandler] (/usr/local/lib/node_modules/terminalgpt/node_modules/commander/lib/command.js:482:17)
at /usr/local/lib/node_modules/terminalgpt/node_modules/commander/lib/command.js:1283:65 {
code: 'ERR_CRYPTO_INVALID_IV'
}
Node.js v18.14.0
Any help is appreciated thank you!