- Generate an OpenAI API key and write it to a file in the root directory named
openai_api_key
- Install the
openai
Python package, following instructions here
Run ./main.py -h
for a list of options. If a prompt isn't provided using --prompt PROMPT
, you can enter one interactively.
Responses and some metadata are also logged to chatgpt.log
.
Tested on Python 3.10.9.