From c2ba62abbc81b1b455832579ef3fe7b8774017c9 Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Tue, 26 Mar 2024 22:39:08 +0100 Subject: [PATCH] Backport PR #691: Use `AZURE_OPENAI_API_KEY` for Azure OpenAI provider (#699) Co-authored-by: Ari Roffe --- 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 = [