techleadhd / chatgpt-retrieval

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Wind010 opened this issue · comments

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

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