A simple CLI that communicates with the OpenIA api
copy or rename the example.env file to .env
cp example.env .envChange the API key in the .env file
OPENAI_API_KEY="YOUR_API_KEY"
Copy the file to /usr/bin/ and give it execution permissions
sudo cp termIA.py /usr/local/bin/termIA
sudo cp .env /usr/local/bin/.env
sudo chmod +x /usr/local/bin/termIACreate a prompt
termIA "Your prompt here"
#or
termIA Your prompt herenote: use '-f' to force rum the command without prompt
termIA -f "Your prompt here" Open ChatGPT on Chrome
termIA -oOpen Help menu
termIA --help