Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-13 15:10:17 +00:00
parent 6090bece4e
commit 5e47bbd5ab

View File

@@ -673,7 +673,10 @@ class AzureChatOpenAI(BaseChatOpenAI):
self.root_client = openai.AzureOpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
self.client = self.root_client.chat.completions
if not self.async_client:
async_specific = {"http_client": self.http_async_client}
async_specific = {
"http_client": self.http_async_client
or _get_default_async_httpx_client(self.azure_endpoint, self.request_timeout)
}
if self.azure_ad_async_token_provider:
client_params["azure_ad_token_provider"] = (
@@ -1154,3 +1157,4 @@ class AzureChatOpenAI(BaseChatOpenAI):
)