You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using openai>1.0.0 for Azure, the environment variable preferred is AZURE_OPENAI_API_KEY instead of OPENAI_API_KEY. To be compliant with this extension and also the code in https://python.langchain.com/docs/integrations/chat/azure_chat_openai -- and using the existing environment variables in the lab pod instead of hard coding them in the config - both AZURE_OPENAI_API_KEY and OPENAI_API_KEY are needed.
Proposed Solution
Replace the auth_strategy for AzureChatOpenAIProvider
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Problem
When using openai>1.0.0 for Azure, the environment variable preferred is
AZURE_OPENAI_API_KEY
instead ofOPENAI_API_KEY
. To be compliant with this extension and also the code in https://python.langchain.com/docs/integrations/chat/azure_chat_openai -- and using the existing environment variables in the lab pod instead of hard coding them in the config - bothAZURE_OPENAI_API_KEY
andOPENAI_API_KEY
are needed.Proposed Solution
Replace the auth_strategy for AzureChatOpenAIProvider
jupyter-ai/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Line 706 in b18b7d0
AZURE_OPENAI_API_KEY
Additional context
The text was updated successfully, but these errors were encountered: