This project is a simple command-line interface for having a conversation with OpenAI's GPT-4 model.
- Python 3.8 or higher
- (Optional)
virtualenv
- Clone this repository or download the project files.
- (Optional) Setup and activate your virtualenv
python -m venv venv
source venv/bin/activate
- Install the required Python packages using pip:
pip install -r requirements.txt
- Copy the
.env.template
file in the root of this repository and rename the copy to.env
. - Place your OpenAI API key in the specified location of the
.env
file:
OPENAI_API_KEY="your-api-key-here"
To start a conversation with the AI, run the main.py
script:
python main.py
Type your messages into the CLI and receive responses from the AI. Type 'quit' to end the conversation.
To run the tests found in the ./test/
directory, run the following command:
PYTHONPATH=. pytest ./test/