llmflows
llmflows copied to clipboard
OpenAI() key default to "OPENAI_API_KEY"
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
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. I will keep this open until I get some more user feedback.