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_decrease_anys_opus5_0826

mateo-berriee86b62b66b3
diff --cc basedpyright-code-budget.json
index 9ec7f114712,9609133a7d1..962d1266fd7
--- a/basedpyright-code-budget.json
+++ b/basedpyright-code-budget.json
@@@ -1,9 -1,9 +1,9 @@@
{
"reportAny": {
- "limit": 18483
+ "limit": 17271
},
"reportArgumentType": {
- "limit": 2544
- "limit": 2552
++ "limit": 2539
},
"reportAssignmentType": {
"limit": 319
@@@ -105,13 -105,13 +105,13 @@@
"limit": 109
},
"reportUnknownMemberType": {
- "limit": 38779
+ "limit": 38721
},
"reportUnknownParameterType": {
- "limit": 19827
+ "limit": 19778
},
"reportUnknownVariableType": {
- "limit": 30292
- "limit": 30346
++ "limit": 30290
},
"reportUnnecessaryCast": {
"limit": 117
diff --cc litellm/llms/bedrock/realtime/handler.py
index a821f3c290e,7b5de304b5e..96d7a79c6d8
--- a/litellm/llms/bedrock/realtime/handler.py
+++ b/litellm/llms/bedrock/realtime/handler.py
@@@ -7,13 -7,13 +7,14 @@@ This uses aws_sdk_bedrock_runtime for b
import asyncio
import contextlib
import json
-from typing import Any, Final
+from typing import Final, Protocol
-from pydantic import TypeAdapter
+from pydantic import JsonValue, TypeAdapter
from litellm._logging import _redact_string, verbose_proxy_logger
+ from litellm.litellm_core_utils.aws_partition import get_aws_dns_suffix
from litellm.litellm_core_utils.litellm_logging import Logging as LiteLLMLogging
+from litellm.types.realtime import RealtimeResponseTransformInput
from ..base_aws_llm import BaseAWSLLM
from ..common_utils import BedrockError
diff --cc ruff-strict-budget.json
index cf04d5bf61c,8b7e1762126..c60988eccc0
--- a/ruff-strict-budget.json
+++ b/ruff-strict-budget.json
@@@ -1,6 -1,6 +1,6 @@@
{
"ANN001": {
- "limit": 3013
- "limit": 3014
++ "limit": 3012
},
"ANN002": {
"limit": 71
@@@ -9,13 -9,13 +9,13 @@@
"limit": 827
},
"ANN201": {
- "limit": 2007
- "limit": 2011
++ "limit": 2003
},
"ANN202": {
- "limit": 846
- "limit": 847
++ "limit": 845
},
"ANN204": {
- "limit": 704
- "limit": 706
++ "limit": 702
},
"ANN205": {
"limit": 112
@@@ -24,7 -24,7 +24,7 @@@
"limit": 133
},
"ANN401": {
- "limit": 904
- "limit": 1153
++ "limit": 655
},
"ASYNC230": {
"limit": 11
@@@ -39,7 -39,7 +39,7 @@@
"limit": 503
},
"B009": {
- "limit": 55
- "limit": 58
++ "limit": 52
},
"B010": {
"limit": 190
@@@ -117,7 -117,7 +117,7 @@@
"limit": 1
},
"PERF102": {
- "limit": 25
- "limit": 27
++ "limit": 23
},
"PERF401": {
"limit": 12
@@@ -177,7 -177,7 +177,7 @@@
"limit": 8
},
"RUF019": {
- "limit": 35
- "limit": 38
++ "limit": 32
},
"RUF046": {
"limit": 4
@@@ -198,7 -198,7 +198,7 @@@
"limit": 58
},
"SIM102": {
- "limit": 316
- "limit": 317
++ "limit": 315
},
"SIM103": {
"limit": 119
@@@ -231,7 -231,7 +231,7 @@@
"limit": 5
},
"TID251": {
- "limit": 1159
- "limit": 1201
++ "limit": 1117
},
"TRY002": {
"limit": 524
@@@ -246,7 -246,7 +246,7 @@@
"limit": 113
},
"TRY300": {
- "limit": 858
- "limit": 859
++ "limit": 857
},
"UP028": {
"limit": 2
diff --cc type-discipline-budget.json
index ccb4f0698bf,c2751b79adc..f3f1a7defe7
--- a/type-discipline-budget.json
+++ b/type-discipline-budget.json
@@@ -27,12 -27,12 +27,12 @@@
"limit": 0
},
"LIT010": {
- "limit": 16565
- "limit": 16615
++ "limit": 16564
},
"LIT011": {
-- "limit": 5580
++ "limit": 5577
},
"LIT012": {
- "limit": 4509
+ "limit": 4508
}
}