techleadhd / chatgpt-retrieval

1.65k stars 787 forks source link

The .gitignore references constants.py, but it is already checked in. #8

Closed Wind010 closed 1 year ago

Wind010 commented 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.

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
Wind010 commented 1 year ago

Closing since this is the only value in constants.py. Mixing up forks.