This commit is contained in:
Praveena Mundolimoole 2026-08-27 19:18:22 -05:00 • committed by GitHub
commit 8b68da8ae4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -581,7 +581,11 @@ class BaseAzureLLM(BaseOpenAILLM):
if scope is None:
scope = "https://cognitiveservices.azure.com/.default"
max_retries: Final = litellm_params.get("max_retries")
max_retries = litellm_params.get("max_retries")
if max_retries is None:
from litellm.constants import DEFAULT_MAX_RETRIES
max_retries = DEFAULT_MAX_RETRIES
timeout: Final = litellm_params.get("timeout")
if not api_key and azure_ad_token_provider is None and tenant_id and client_id and client_secret:
verbose_logger.debug("Using Azure AD Token Provider from Entra ID for Azure Auth")