Replies: 1 comment 5 replies
-
I personally have those exported as environment variables as well, but I am not sure if that would work the same way on Windows? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As an alternative idea how to store the OpenAI API key, you can store the key in an environment variable in a .env file. This is a safer way because you can store your key there without exposing in directly in the notebook, and the .env won't be pushed to your repo (should be included in the .gitignore). As a reference, I have done this some time ago for a project with a documentation for the OpenAI API key set up.
Beta Was this translation helpful? Give feedback.
All reactions