A simple CLI that communicates with the OpenIA api
copy or rename the example.env
file to .env
cp example.env .env
Change 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/bin/termIA
sudo cp .env /usr/bin/.env
sudo chmod +x /usr/bin/termIA
Create a prompt
termIA "Your prompt here"
#or
termIA Your prompt here
note: use '-f' to force rum the command without prompt
termIA -f "Your prompt here"
Open ChatGPT on Chrome
termIA -o
Open Help menu
termIA --help