From e079761b6efbb052240fa82bd963bce29737f8fd Mon Sep 17 00:00:00 2001 From: Ari Roffe Date: Tue, 26 Mar 2024 16:30:50 -0500 Subject: [PATCH] Backport PR #691: Use `AZURE_OPENAI_API_KEY` for Azure OpenAI provider --- packages/jupyter-ai-magics/jupyter_ai_magics/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py index 2281ddfe6..f34dea75c 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py @@ -661,7 +661,7 @@ class AzureChatOpenAIProvider(BaseProvider, AzureChatOpenAI): model_id_key = "deployment_name" model_id_label = "Deployment name" pypi_package_deps = ["openai"] - auth_strategy = EnvAuthStrategy(name="OPENAI_API_KEY") + auth_strategy = EnvAuthStrategy(name="AZURE_OPENAI_API_KEY") registry = True fields = [