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 remote-tracking branch 'origin/litellm_internal_staging' into litellm_daily_any_cleanup_08_04_2026

mateo-berri2bd6af1b6416
diff --cc basedpyright-code-budget.json
index 2a00e4704f1,ab5c6dcceaf..06a81dc19c8
--- a/basedpyright-code-budget.json
+++ b/basedpyright-code-budget.json
@@@ -1,9 -1,9 +1,9 @@@
{
"reportAny": {
- "limit": 29207
- "limit": 29806
++ "limit": 29204
},
"reportArgumentType": {
- "limit": 2645
+ "limit": 2635
},
"reportAssignmentType": {
"limit": 329
@@@ -21,10 -21,10 +21,10 @@@
"limit": 215
},
"reportDuplicateImport": {
- "limit": 24
+ "limit": 19
},
"reportExplicitAny": {
- "limit": 9231
- "limit": 9469
++ "limit": 9227
},
"reportFunctionMemberAccess": {
"limit": 7
@@@ -105,16 -105,16 +105,16 @@@
"limit": 113
},
"reportUnknownMemberType": {
- "limit": 40345
- "limit": 40447
++ "limit": 40340
},
"reportUnknownParameterType": {
- "limit": 20309
+ "limit": 20293
},
"reportUnknownVariableType": {
- "limit": 31895
- "limit": 31880
++ "limit": 31797
},
"reportUnnecessaryCast": {
- "limit": 124
+ "limit": 122
},
"reportUnnecessaryComparison": {
"limit": 703
@@@ -123,10 -123,10 +123,10 @@@
"limit": 5
},
"reportUnnecessaryIsInstance": {
- "limit": 866
+ "limit": 865
},
"reportUntypedBaseClass": {
- "limit": 165
+ "limit": 72
},
"reportUntypedFunctionDecorator": {
"limit": 33
@@@ -138,9 -138,9 +138,9 @@@
"limit": 139
},
"reportUnusedImport": {
- "limit": 587
- "limit": 556
++ "limit": 555
},
"reportUnusedVariable": {
- "limit": 147
+ "limit": 146
}
}
diff --cc litellm/proxy/hooks/parallel_request_limiter_v3.py
index 32d1fd5a4f7,395058bf976..53c5112d1d7
--- a/litellm/proxy/hooks/parallel_request_limiter_v3.py
+++ b/litellm/proxy/hooks/parallel_request_limiter_v3.py
@@@ -12,16 -12,7 +12,15 @@@ from collections.abc import Callable, S
from contextvars import ContextVar
from dataclasses import dataclass, field
from datetime import datetime
-from typing import TYPE_CHECKING, Any, Final, Literal, TypedDict, cast
+from typing import (
+ TYPE_CHECKING,
+ Any,
+ Final,
+ Literal,
+ Protocol,
+ TypeAlias,
+ TypedDict,
- Union,
+)
from litellm import DualCache
from litellm._logging import verbose_proxy_logger
@@@ -56,10 -47,9 +55,10 @@@ if TYPE_CHECKING
from opentelemetry.trace import Span as _Span
from litellm.proxy.utils import InternalUsageCache as _InternalUsageCache
+ from litellm.types.agents import AgentResponse
from litellm.types.caching import RedisPipelineIncrementOperation
- Span = Union[_Span, Any]
+ Span = _Span | Any
InternalUsageCache = _InternalUsageCache
else:
Span = Any
diff --cc ruff-strict-budget.json
index e17b57a557b,0b382b2170a..67dc7d8e1dd
--- a/ruff-strict-budget.json
+++ b/ruff-strict-budget.json
@@@ -1,30 -1,30 +1,30 @@@
{
"ANN001": {
- "limit": 2846
- "limit": 3132
++ "limit": 3129
},
"ANN002": {
- "limit": 65
+ "limit": 71
},
"ANN003": {
- "limit": 774
- "limit": 840
++ "limit": 838
},
"ANN201": {
- "limit": 1960
- "limit": 2039
++ "limit": 2038
},
"ANN202": {
- "limit": 867
- "limit": 871
++ "limit": 870
},
"ANN204": {
- "limit": 669
+ "limit": 715
},
"ANN205": {
"limit": 115
},
"ANN206": {
- "limit": 121
+ "limit": 133
},
"ANN401": {
- "limit": 1762
- "limit": 1861
++ "limit": 1775
},
"ASYNC230": {
"limit": 11
@@@ -306,10 -306,10 +306,10 @@@
"limit": 0
},
"TID251": {
- "limit": 0
- "limit": 1248
++ "limit": 1245
},
"TRY002": {
- "limit": 526
+ "limit": 528
},
"TRY004": {
"limit": 96
diff --cc type-discipline-budget.json
index c418bccc1e2,3444be73ccd..0d08966e568
--- a/type-discipline-budget.json
+++ b/type-discipline-budget.json
@@@ -1,12 -1,12 +1,12 @@@
{
"LIT001": {
- "limit": 23346
+ "limit": 23343
},
"LIT002": {
- "limit": 27217
- "limit": 27224
++ "limit": 27214
},
"LIT003": {
- "limit": 286
+ "limit": 269
},
"LIT004": {
"limit": 43
@@@ -15,7 -15,7 +15,7 @@@
"limit": 0
},
"LIT006": {
- "limit": 1094
- "limit": 1102
++ "limit": 1093
},
"LIT007": {
"limit": 0
@@@ -27,9 -27,9 +27,9 @@@
"limit": 0
},
"LIT010": {
- "limit": 16802
- "limit": 16828
++ "limit": 16806
},
"LIT011": {
- "limit": 5603
+ "limit": 5602
}
}