-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Why does setting AZURE_OPENAI_API_KEY env variable preclude ever using OPENAI_API_KEY? #1687
Comments
Faced the same issue yesterday +1 |
+1 This was a tricky one for me to debug and glad I'm not the only one |
Hi, @swiecki! I'm Dosu, and I'm here to help the langchainjs team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you were questioning why setting the AZURE_OPENAI_API_KEY environment variable prevents you from using the OPENAI_API_KEY. You found a workaround by renaming the environment variable, but you believe this default behavior is strange. Another user, codebanesr, faced the same issue, and danny-avila also experienced the problem and is glad they are not the only one. Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the langchainjs repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding, and we appreciate your contribution to the langchainjs community! |
Hi, I want to use my azure deployments for some LLMs and my openAI key for some others. However this isn't possible if I set the environment variable. I got around this by renaming the environment variable to something else and only passing it in manually when I want to use it, but this seems like an odd default?
The text was updated successfully, but these errors were encountered: