From 57ac6dd1546cc1a4a10602c0fb71a1add03e12e7 Mon Sep 17 00:00:00 2001 From: Logan Markewich Date: Wed, 28 Feb 2024 10:09:56 -0600 Subject: [PATCH] revert some changes --- .../llama_index/llms/azure_openai/base.py | 2 +- .../llama_index/multi_modal_llms/azure_openai/base.py | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py b/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py index 6297019c26127..236c7af700ff7 100644 --- a/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py +++ b/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py @@ -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() diff --git a/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-azure-openai/llama_index/multi_modal_llms/azure_openai/base.py b/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-azure-openai/llama_index/multi_modal_llms/azure_openai/base.py index b5a9a89200666..b02c38b051c58 100644 --- a/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-azure-openai/llama_index/multi_modal_llms/azure_openai/base.py +++ b/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-azure-openai/llama_index/multi_modal_llms/azure_openai/base.py @@ -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, diff --git a/pyproject.toml b/pyproject.toml index b091fafa27531..d40690be39cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,6 @@ llama-index-multi-modal-llms-openai = "^0.1.3" llama-index-cli = "^0.1.2" [tool.poetry.group.dev.dependencies] -azure-identity = ">=1.15.0" black = {extras = ["jupyter"], version = "<=23.9.1,>=23.7.0"} codespell = {extras = ["toml"], version = ">=v2.2.6"} mypy = "0.991"