mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 21:33:51 +00:00
[Community]: AzureOpenAIWhisperParser Authenication Fix (#29135)
- **Description:** `AzureOpenAIWhisperParser` authentication fix as stated in the issue. - **Issue:** #29133
This commit is contained in:
parent
44b41b699c
commit
21eb39dff0
@ -158,7 +158,7 @@ class AzureOpenAIWhisperParser(BaseBlobParser):
|
|||||||
azure_endpoint=self.azure_endpoint,
|
azure_endpoint=self.azure_endpoint,
|
||||||
api_version=self.api_version,
|
api_version=self.api_version,
|
||||||
max_retries=self.max_retries,
|
max_retries=self.max_retries,
|
||||||
azure_ad_token=self.azure_ad_token_provider,
|
azure_ad_token_provider=self.azure_ad_token_provider,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if self.api_key:
|
if self.api_key:
|
||||||
|
@ -32,7 +32,7 @@ def test_azure_openai_whisper(mock_client: Mock) -> None:
|
|||||||
azure_endpoint=endpoint,
|
azure_endpoint=endpoint,
|
||||||
api_version=version,
|
api_version=version,
|
||||||
max_retries=3,
|
max_retries=3,
|
||||||
azure_ad_token=None,
|
azure_ad_token_provider=None,
|
||||||
)
|
)
|
||||||
assert parser._client == mock_client()
|
assert parser._client == mock_client()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user