Skip to content

Commit

Permalink
Backport PR #691: Use AZURE_OPENAI_API_KEY for Azure OpenAI provider (
Browse files Browse the repository at this point in the history
#699)

Co-authored-by: Ari Roffe <[email protected]>
  • Loading branch information
meeseeksmachine and aroffe99 authored Mar 26, 2024
1 parent 9022060 commit c2ba62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit c2ba62a

Please sign in to comment.