Repository for chatting with ChatGPT.
This repository contains Python code, and associated unit tests, which uses the OpenAI API to perform language generation. The code takes the input from the user and generates a response using the "text-davinci-003" engine.
Your OpenAI key is passed to program via an environment variable
export OPENAI_KEY="Your OpenAI key"
python main.py
To generate an OpenAI key browse to OpenAI API Keys and select "Create new secret key".
pytest
For more information on the API available see the OpenAI API Reference Documentation.