Simple CLI to use chatgpt inside the command line terminal
- Clone the project files anywhere you want.
- Go inside the folder and create the file api_key.txt and paste your openai api key inside it.
- The program is now working. For convenience, to execute the program in any folder of your terminal, go to your terminal configuration file (maybe .bashrc or .zshrc) and paste the following alias: alias gpt="path-to-python-interpreter" "path-to-main.py"
- Now reopen your terminal and you should be able to interact to chat-gpt by typing the command "gpt".
- Once correctly installed, go to your terminal and type the command "gpt". Type your question and start interacting.
- To exit type "exit".