Skip to content

Commit

Permalink
Add default value for _azure_ad_token attribute in AzureOpenAI class (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancelin Serre authored Feb 28, 2024
1 parent 33dfc47 commit 841dca5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AzureOpenAI(OpenAI):
description="Indicates if Microsoft Entra ID (former Azure AD) is used for token authentication"
)

_azure_ad_token: Any = PrivateAttr()
_azure_ad_token: Any = PrivateAttr(default=None)
_client: SyncAzureOpenAI = PrivateAttr()
_aclient: AsyncAzureOpenAI = PrivateAttr()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AzureOpenAIMultiModal(OpenAIMultiModal):
description="Indicates if Microsoft Entra ID (former Azure AD) is used for token authentication"
)

_azure_ad_token: Any = PrivateAttr()
_azure_ad_token: Any = PrivateAttr(default=None)

def __init__(
self,
Expand Down
58 changes: 29 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 841dca5

Please sign in to comment.