Small wrapper of OpenAI API (Set to ChatGPT-3.5) for:
- using when the web interface is having problems
- using system and assistant/user pairs (api only feature)
- executing slightly more verbose prompts
- easily saving conversations locally
-
Sign up / get your API key: https://platform.openai.com/signup
-
Create the env file:
cp .env.example .env
, put your API key where specified -
Install deps (Use a python venv/etc, if you want):
pip3 install -r requirements.txt
-
Run:
python ./prompt.py
-
Just fill out the
user()
,system()
andexamples()
functions as desired. -
To save answers:
python ./prompt.py > answers