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_fable6
mateo-berrifbf764467648
diff --cc basedpyright-code-budget.jsonindex 242d57a40e0,f8ef0ce1732..d60c3e9c0af--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@@ -1,9 -1,9 +1,9 @@@{"reportAny": {- "limit": 16984- "limit": 16389++ "limit": 16171},"reportArgumentType": {- "limit": 2535- "limit": 2229++ "limit": 2226},"reportAssignmentType": {"limit": 319@@@ -24,7 -24,7 +24,7 @@@"limit": 19},"reportExplicitAny": {- "limit": 5442- "limit": 5242++ "limit": 5199},"reportFunctionMemberAccess": {"limit": 7@@@ -54,10 -54,10 +54,10 @@@"limit": 0},"reportMissingParameterType": {- "limit": 5655- "limit": 5614++ "limit": 5611},"reportMissingTypeArgument": {- "limit": 15419- "limit": 15356++ "limit": 15350},"reportMissingTypeStubs": {"limit": 40@@@ -90,34 -90,34 +90,34 @@@"limit": 8},"reportReturnType": {- "limit": 213+ "limit": 181},"reportTypedDictNotRequiredAccess": {- "limit": 25+ "limit": 24},"reportUndefinedVariable": {"limit": 0},"reportUnknownArgumentType": {- "limit": 44505- "limit": 44389++ "limit": 44368},"reportUnknownLambdaType": {"limit": 109},"reportUnknownMemberType": {- "limit": 38689- "limit": 38500++ "limit": 38468},"reportUnknownParameterType": {- "limit": 19770- "limit": 19673++ "limit": 19665},"reportUnknownVariableType": {- "limit": 30264- "limit": 30092++ "limit": 30066},"reportUnnecessaryCast": {- "limit": 117+ "limit": 111},"reportUnnecessaryComparison": {- "limit": 697+ "limit": 695},"reportUnnecessaryContains": {"limit": 5diff --cc litellm/integrations/websearch_interception/handler.pyindex cc2656219cc,af82cf33796..81310b9ddc3--- a/litellm/integrations/websearch_interception/handler.py+++ b/litellm/integrations/websearch_interception/handler.py@@@ -10,7 -10,7 +10,7 @@@ import asynciimport mathimport uuidfrom collections.abc import AsyncIterator, Mapping, Sequence- from typing import TYPE_CHECKING, Any, Final, Literal, Never, TypedDict, cast-from typing import TYPE_CHECKING, Any, Final, TypedDict, TypeVar, cast++from typing import TYPE_CHECKING, Any, Final, Literal, Never, TypedDict, TypeVar, castfrom typing_extensions import ReadOnlydiff --cc ruff-strict-budget.jsonindex b69650835ac,fce91d57d88..1e855ea1b71--- a/ruff-strict-budget.json+++ b/ruff-strict-budget.json@@@ -1,15 -1,15 +1,15 @@@{"ANN001": {- "limit": 3009- "limit": 2998++ "limit": 2995},"ANN002": {"limit": 71},"ANN003": {- "limit": 827+ "limit": 809},"ANN201": {- "limit": 2003+ "limit": 2002},"ANN202": {"limit": 845@@@ -24,7 -24,7 +24,7 @@@"limit": 133},"ANN401": {- "limit": 644- "limit": 597++ "limit": 587},"ASYNC230": {"limit": 11@@@ -195,10 -195,10 +195,10 @@@"limit": 22},"SIM101": {- "limit": 58+ "limit": 56},"SIM102": {- "limit": 315+ "limit": 314},"SIM103": {"limit": 119@@@ -231,7 -231,7 +231,7 @@@"limit": 5},"TID251": {- "limit": 1112- "limit": 1111++ "limit": 1108},"TRY002": {"limit": 524diff --cc type-discipline-budget.jsonindex b2b23dc8d40,bb02618b11e..ab34775c460--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@@ -1,9 -1,9 +1,9 @@@{"LIT001": {- "limit": 22583- "limit": 22642++ "limit": 22521},"LIT002": {- "limit": 26840- "limit": 26834++ "limit": 26820},"LIT003": {"limit": 269@@@ -15,7 -15,7 +15,7 @@@"limit": 0},"LIT006": {- "limit": 1060- "limit": 1041++ "limit": 1039},"LIT007": {"limit": 0@@@ -27,12 -27,12 +27,12 @@@"limit": 0},"LIT010": {- "limit": 16560- "limit": 16550++ "limit": 16546},"LIT011": {-- "limit": 5576++ "limit": 5575},"LIT012": {- "limit": 4505- "limit": 4496++ "limit": 4495}}