Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(azure_ai): keep api_version as a property alongside the new getter

ryan-crabbe-berrif9ba42860c9a
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.