Closed Wind010 closed 1 year ago
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.
.gitignore
secrets.py
APIKEY
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
constants.py
chatgpt.py
os.environ["OPENAI_API_KEY"] = secrets.API_KEY
Closing since this is the only value in constants.py. Mixing up forks.
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 asecrets.py
for theAPIKEY
and update the readme.Create a
secrets.py
to use your own OpenAI API key:Update the
.gitignore
withsecrets.py
instead ofconstants.py
.Update
chatgpt.py
with