Messing with ChatGPT's API. Currently, basically ChatGPT in the terminal, but bad.
- Python. Version 3, I think.
- The
python-dotenv
package, optionally.
- Set the
API_KEY
variable to your OpenAI API key, either on the commandline or in the .env file if you havepython-dotenv
. If you don't have one, get one for free here. - Optionally, set the
SYSTEM_PROMPT
variable to change ChatGPT's behaviour. - Run
gpterm.py
and enjoy the results.