The .gitignore references constants.py, but it is already checked in.
Wind010 opened this issue · comments
Jeff Tong commented
Nice work and informative video.
The constants.py file is already checked in and the .gitignore
file will not ignore it. Probably best to create a secrets.py
for the APIKEY
and update the readme.
Create a secrets.py
to use your own OpenAI API key:
APIKEY = "YOUR_API_KEY"
Update the .gitignore
with secrets.py
instead of constants.py
.
Update chatgpt.py
with
os.environ["OPENAI_API_KEY"] = secrets.API_KEY
Jeff Tong commented
Closing since this is the only value in constants.py
. Mixing up forks.