[Community]: AzureOpenAIWhisperParser Authenication Fix (#29135)

- **Description:** `AzureOpenAIWhisperParser` authentication fix as
stated in the issue.
- **Issue:** #29133
This commit is contained in:
Mohammad Mohtashim 2025-01-15 19:44:53 +05:00 committed by GitHub
parent 44b41b699c
commit 21eb39dff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ class AzureOpenAIWhisperParser(BaseBlobParser):
azure_endpoint=self.azure_endpoint,
api_version=self.api_version,
max_retries=self.max_retries,
azure_ad_token=self.azure_ad_token_provider,
azure_ad_token_provider=self.azure_ad_token_provider,
)
else:
if self.api_key:

View File

@ -32,7 +32,7 @@ def test_azure_openai_whisper(mock_client: Mock) -> None:
azure_endpoint=endpoint,
api_version=version,
max_retries=3,
azure_ad_token=None,
azure_ad_token_provider=None,
)
assert parser._client == mock_client()