0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.04k stars 151 forks source link

Installation Error #144

Open ImahnShekhzadeh opened 8 months ago

ImahnShekhzadeh commented 8 months ago
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'
Apolofx commented 6 months ago

Idem with MacOS Sonoma 14.1.2

beeCwright commented 1 month ago

I am also getting this error on WSL Ubuntu 22.04

beeCwright commented 1 month ago

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.