chatGPT-shell-cli
chatGPT-shell-cli copied to clipboard
Installation Error
curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/install.sh | sudo -E bash
output (ubuntu 22.04):
Installed chatgpt script to /usr/local/bin/chatgpt
The script will add the OPENAI_KEY environment variable to your shell profile and add /usr/local/bin to your PATH
Would you like to continue? (Yes/No)
OpenAI key and chatgpt path added to ~/.profile
Installation complete
bash: line 93: syntax error near unexpected token `else'
bash: line 93: `else'
Idem with MacOS Sonoma 14.1.2
I am also getting this error on WSL Ubuntu 22.04
It doesn't seem like this repo is being maintained anymore. For anyone that encounters this issue just continue on trying to use it and enter the command: chatgpt after which you need to obtain and set your openai api key as an environment variable OPENAI_KEY, and it needs to belong to a paid subscription account.