From f9ba42860c9a4b76660c0dcff6b55028c95c282c Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Mon, 14 Sep 2026 14:56:07 -0700 Subject: [PATCH] fix(azure_ai): keep api_version as a property alongside the new getter The PLR0206 fix renamed the property to get_api_version and dropped it. AzureFoundryModelInfo().api_version does resolve today, so removing it breaks external callers. Restore it as a zero-arg property delegating to the staticmethod, which satisfies PLR0206 either way. --- litellm/llms/azure_ai/common_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/azure_ai/common_utils.py b/litellm/llms/azure_ai/common_utils.py index d68a55873bd..53a864a880a 100644 --- a/litellm/llms/azure_ai/common_utils.py +++ b/litellm/llms/azure_ai/common_utils.py @@ -148,6 +148,10 @@ class AzureFoundryModelInfo(BaseLLMModelInfo): def get_api_version(api_version: str | None = None) -> str | None: return api_version or litellm.api_version or get_secret_str("AZURE_API_VERSION") + @property + def api_version(self) -> str | None: + return AzureFoundryModelInfo.get_api_version() + def get_token_counter(self) -> BaseTokenCounter | None: """ Factory method to create a token counter for Azure AI.