Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get OpenAI key from environment variable? #4

Open
lehenbauer opened this issue Apr 8, 2023 · 1 comment
Open

Get OpenAI key from environment variable? #4

lehenbauer opened this issue Apr 8, 2023 · 1 comment

Comments

@lehenbauer
Copy link

lehenbauer commented Apr 8, 2023

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.

@pgosar
Copy link
Owner

pgosar commented Apr 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants