Python app/module mimicking the official ChatGPT app via OpenAI's Completion API.
Clean and simple, no reverse engineering or hacks in your browser.
Can be ran directly in your console or imported in your python project.
Python 3.10 or up (could work with older versions as well)
https://www.python.org/downloads
Check that python points to your new installation:
which python
(Unix)
where python
(Windows CMD)
-
Open your shell in the current folder
-
Create a virtual environment:
python -m venv venv
-
Activate the venv:
. ./venv/Scripts/activate
(Unix)
./venv/Scripts/activate.bat
(Windows) -
Install the requirements:
pip install -r requirements.txt
-
Add a
.env
file withOPENAI_API_KEY="your key"
Get yours: https://platform.openai.com/account/api-keys -
Open your shell in the current folder and run:
python chatgpt.py
This is a work in progress. PRs are welcome! ☕
This repo is not associated in any way with OpenAI and it's not an official app.