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]

Merge branch 'main' into litellm_dev_03_12_2025_p1

Krish Dholakiacff1c1f7d86a
diff --cc litellm/litellm_core_utils/get_litellm_params.py
index fcf83d17a2c,d1166e157b8..4f2f43f0de3
--- a/litellm/litellm_core_utils/get_litellm_params.py
+++ b/litellm/litellm_core_utils/get_litellm_params.py
@@@ -58,7 -58,7 +58,8 @@@ def get_litellm_params
async_call: Optional[bool] = None,
ssl_verify: Optional[bool] = None,
merge_reasoning_content_in_choices: Optional[bool] = None,
+ api_version: Optional[str] = None,
+ max_retries: Optional[int] = None,
**kwargs,
) -> dict:
litellm_params = {
@@@ -100,6 -100,13 +101,14 @@@
"async_call": async_call,
"ssl_verify": ssl_verify,
"merge_reasoning_content_in_choices": merge_reasoning_content_in_choices,
+ "api_version": api_version,
+ "azure_ad_token": kwargs.get("azure_ad_token"),
+ "tenant_id": kwargs.get("tenant_id"),
+ "client_id": kwargs.get("client_id"),
+ "client_secret": kwargs.get("client_secret"),
+ "azure_username": kwargs.get("azure_username"),
+ "azure_password": kwargs.get("azure_password"),
+ "max_retries": max_retries,
+ "timeout": kwargs.get("timeout"),
}
return litellm_params
diff --cc litellm/main.py
index a6a1a7c7d13,00174ca4355..84ad92dfe06
--- a/litellm/main.py
+++ b/litellm/main.py
@@@ -1162,7 -1162,14 +1162,15 @@@ def completion( # type: ignore # noqa
merge_reasoning_content_in_choices=kwargs.get(
"merge_reasoning_content_in_choices", None
),
+ api_version=api_version,
+ azure_ad_token=kwargs.get("azure_ad_token"),
+ tenant_id=kwargs.get("tenant_id"),
+ client_id=kwargs.get("client_id"),
+ client_secret=kwargs.get("client_secret"),
+ azure_username=kwargs.get("azure_username"),
+ azure_password=kwargs.get("azure_password"),
+ max_retries=max_retries,
+ timeout=timeout,
)
logging.update_environment_variables(
model=model,
diff --cc litellm/proxy/_new_secret_config.yaml
index 96e6c643761,ecf2346a3af..9436e8af0f3
--- a/litellm/proxy/_new_secret_config.yaml
+++ b/litellm/proxy/_new_secret_config.yaml
@@@ -3,15 -3,16 +3,15 @@@ model_list
litellm_params:
model: bedrock/amazon.nova-canvas-v1:0
aws_region_name: "us-east-1"
- - model_name: gpt-4o-mini-3
- litellm_params:
- model: azure/gpt-4o-mini-3
+ litellm_credential_name: "azure"
+
+ credential_list:
+ - credential_name: azure
+ credential_values:
api_key: os.environ/AZURE_API_KEY
api_base: os.environ/AZURE_API_BASE
- model_info:
- base_model: azure/eu.gpt-4o-mini-2
- - model_name: gpt-4o-mini-2
- litellm_params:
- model: azure/gpt-4o-mini-2
- api_key: os.environ/AZURE_API_KEY
- api_base: os.environ/AZURE_API_BASE
+ credential_info:
+ description: "Azure API Key and Base URL"
+ type: "azure"
+ required: true
- default: "azure"
-
++ default: "azure"