A terminal-based ChatGPT.
Run the program with
python cligpt/main.py
Once you have imported the required libraries.
To run this program, you will need:
- a working python environment
- an OpenAI API key - once you have your OpenAI account, you can create your own key at https://platform.openai.com/account/api-keys
We recommend that you install the needed python libraries in a virtual environment. Here is how you can do:
Create a virtual environment in the folder where you cloned the projet:
python -m venv .venv
Then activate it and download the required libraries:
.venv/bin/activate
pip install -r requirements.txt
Now you can run the program:
python cligpt/main.py
- API documentation: https://platform.openai.com/docs/api-reference?lang=python
- OpenAI cook book: https://github.com/openai/openai-cookbook/tree/main