ChatGDB icon indicating copy to clipboard operation
ChatGDB copied to clipboard

Get OpenAI key from environment variable?

Open lehenbauer opened this issue 2 years ago • 1 comments

The openai package for Python recognizes an environment variable, OPENAI_API_KEY, and will get the key from that if set. I recommend implementing that.

You might consider using the openai package to handle all the API calls to chatGPT because of the simplification and you'll get the environment variable thing for free.

What's really intriguing is could chatGPT more directly help you figure out the bug by strategizing on a solution.

lehenbauer avatar Apr 08 '23 04:04 lehenbauer

Thanks for the suggestions! I'll definitely look into it.

pgosar avatar Apr 08 '23 16:04 pgosar