hide openai key in environment variables

#2
by czuo03 - opened

Hi, I was studying your codes to build my own demo and found your openai key is shown in the app.py file. perhaps you should consider setting it as an environment variable then load it like openai.api_key = os.getenv("OPENAI_API_KEY"), so that others wont have access to your key.

Yea True, Thanks i will do that

@czuo03 Thanks for spotting the blind spot

Sign up or log in to comment