-
Notifications
You must be signed in to change notification settings - Fork 33
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
OpenAI() key default to "OPENAI_API_KEY" #51
Labels
bug
Something isn't working
Comments
hi @iuiu34 thanks for bringing this up. I also had some feedback that loading API keys by default can create some issues like using the wrong API key. Another concern I have is that if one model provider does that by default and the rest don't this creates inconsistencies in the API. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
OpenAI() has arg
api_key
.Why this does not default to os.environ['OPENAI_API_KEY']?
Expected behavior
OpenAI()
is callable without args
Reproduce the code example:
`OpenAI()`
Error message:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: