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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_decrease_anys_opus5_r2
mateo-berried416a06cb65
diff --cc basedpyright-code-budget.jsonindex 99c88845725,83969d8dedf..8634e9a5c32--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@@ -1,9 -1,9 +1,9 @@@{"reportAny": {- "limit": 16279- "limit": 17270++ "limit": 16282},"reportArgumentType": {- "limit": 2530- "limit": 2538++ "limit": 2529},"reportAssignmentType": {"limit": 319@@@ -105,13 -105,13 +105,13 @@@"limit": 109},"reportUnknownMemberType": {- "limit": 38622- "limit": 38721++ "limit": 38621},"reportUnknownParameterType": {- "limit": 19778+ "limit": 19748},"reportUnknownVariableType": {- "limit": 30290+ "limit": 30210},"reportUnnecessaryCast": {"limit": 117diff --cc litellm/proxy/spend_tracking/budget_reservation.pyindex 5f43785e57c,46086711923..f623d8085d7--- a/litellm/proxy/spend_tracking/budget_reservation.py+++ b/litellm/proxy/spend_tracking/budget_reservation.py@@@ -32,7 -34,7 +34,8 @@@ from litellm.proxy.common_utils.user_ap)from litellm.proxy.utils import PrismaClient, ProxyLoggingfrom litellm.router import Router+ from litellm.types.proxy.model_access_group_budget import ModelAccessGroupBudget+from litellm.types.router import DeploymentTypedDict@dataclassdiff --cc ruff-strict-budget.jsonindex fca2e4f69bc,b4107582000..35bedee08a9--- a/ruff-strict-budget.json+++ b/ruff-strict-budget.json@@@ -1,21 -1,21 +1,21 @@@{"ANN001": {- "limit": 3004- "limit": 3012++ "limit": 2996},"ANN002": {"limit": 71},"ANN003": {- "limit": 825- "limit": 827++ "limit": 823},"ANN201": {"limit": 2003},"ANN202": {- "limit": 843- "limit": 845++ "limit": 841},"ANN204": {- "limit": 700- "limit": 702++ "limit": 698},"ANN205": {"limit": 112@@@ -24,7 -24,7 +24,7 @@@"limit": 133},"ANN401": {- "limit": 516- "limit": 654++ "limit": 378},"ASYNC230": {"limit": 11@@@ -168,7 -168,7 +168,7 @@@"limit": 3},"RET504": {- "limit": 174- "limit": 175++ "limit": 173},"RUF012": {"limit": 239@@@ -198,7 -198,7 +198,7 @@@"limit": 58},"SIM102": {- "limit": 313- "limit": 315++ "limit": 311},"SIM103": {"limit": 119@@@ -231,7 -231,7 +231,7 @@@"limit": 5},"TID251": {- "limit": 1104- "limit": 1116++ "limit": 1092},"TRY002": {"limit": 524diff --cc type-discipline-budget.jsonindex ecd4fc738e9,7365cec4fdd..8c83bde8774--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@@ -1,9 -1,9 +1,9 @@@{"LIT001": {- "limit": 22654- "limit": 22704++ "limit": 22604},"LIT002": {- "limit": 26830- "limit": 26854++ "limit": 26806},"LIT003": {"limit": 269@@@ -27,10 -27,10 +27,10 @@@"limit": 0},"LIT010": {- "limit": 16546- "limit": 16564++ "limit": 16528},"LIT011": {- "limit": 5558- "limit": 5577++ "limit": 5539},"LIT012": {"limit": 4506