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_fable5

mateo-berrib554dd3bcd22
diff --cc basedpyright-code-budget.json
index 1b2563a59a4,96b689aed74..6e3cbdff9d0
--- a/basedpyright-code-budget.json
+++ b/basedpyright-code-budget.json
@@@ -1,15 -1,15 +1,15 @@@
{
"reportAny": {
- "limit": 25153
- "limit": 26391
++ "limit": 23919
},
"reportArgumentType": {
- "limit": 2597
- "limit": 2614
++ "limit": 2580
},
"reportAssignmentType": {
- "limit": 325
- "limit": 327
++ "limit": 323
},
"reportAttributeAccessIssue": {
- "limit": 501
- "limit": 514
++ "limit": 488
},
"reportCallIssue": {
"limit": 114
@@@ -18,13 -18,13 +18,13 @@@
"limit": 40
},
"reportDeprecated": {
- "limit": 214
- "limit": 215
++ "limit": 213
},
"reportDuplicateImport": {
"limit": 19
},
"reportExplicitAny": {
- "limit": 7946
- "limit": 8319
++ "limit": 7573
},
"reportFunctionMemberAccess": {
"limit": 7
@@@ -54,10 -54,10 +54,10 @@@
"limit": 0
},
"reportMissingParameterType": {
- "limit": 5772
- "limit": 5825
++ "limit": 5719
},
"reportMissingTypeArgument": {
- "limit": 15676
- "limit": 15695
++ "limit": 15657
},
"reportMissingTypeStubs": {
"limit": 40
@@@ -72,7 -72,7 +72,7 @@@
"limit": 0
},
"reportOptionalMemberAccess": {
- "limit": 1073
- "limit": 1077
++ "limit": 1069
},
"reportOptionalOperand": {
"limit": 0
@@@ -99,37 -99,37 +99,37 @@@
"limit": 0
},
"reportUnknownArgumentType": {
- "limit": 44914
- "limit": 44996
++ "limit": 44832
},
"reportUnknownLambdaType": {
"limit": 113
},
"reportUnknownMemberType": {
- "limit": 39456
- "limit": 39643
++ "limit": 39269
},
"reportUnknownParameterType": {
- "limit": 20060
- "limit": 20132
++ "limit": 19988
},
"reportUnknownVariableType": {
- "limit": 31038
- "limit": 31153
++ "limit": 30923
},
"reportUnnecessaryCast": {
"limit": 118
},
"reportUnnecessaryComparison": {
- "limit": 700
- "limit": 701
++ "limit": 699
},
"reportUnnecessaryContains": {
"limit": 5
},
"reportUnnecessaryIsInstance": {
- "limit": 855
- "limit": 857
++ "limit": 853
},
"reportUntypedBaseClass": {
"limit": 0
},
"reportUntypedFunctionDecorator": {
- "limit": 30
- "limit": 33
++ "limit": 27
},
"reportUnusedClass": {
"limit": 23
@@@ -138,7 -138,7 +138,7 @@@
"limit": 139
},
"reportUnusedImport": {
- "limit": 550
- "limit": 555
++ "limit": 545
},
"reportUnusedVariable": {
"limit": 146
diff --cc litellm/proxy/management_endpoints/key_management_endpoints.py
index b578fb40ef2,ebf44497658..2a385c4c42a
--- a/litellm/proxy/management_endpoints/key_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py
@@@ -4701,9 -4694,9 +4704,9 @@@ async def _execute_virtual_key_regenera
grace_period=data.grace_period if data else None,
)
- updated_token: Final = await VerificationTokenRepository(prisma_client).table.update(
+ updated_token: Final[Mapping[str, object] | None] = await VerificationTokenRepository(prisma_client).table.update(
where={"token": hashed_api_key},
- data=jsonified_update_data,
+ data=with_settings_updated_at(jsonified_update_data),
)
updated_token_dict: Final[dict[str, object]] = dict(updated_token) if updated_token is not None else {}
updated_token_dict["key"] = new_token
diff --cc ruff-strict-budget.json
index 5c2ae134b94,12a98dee7ed..dff010bfd30
--- a/ruff-strict-budget.json
+++ b/ruff-strict-budget.json
@@@ -24,7 -24,7 +24,7 @@@
"limit": 133
},
"ANN401": {
- "limit": 1388
- "limit": 1491
++ "limit": 1384
},
"ASYNC230": {
"limit": 11
diff --cc type-discipline-budget.json
index e33cd34f609,eee067815d2..fdacf375844
--- a/type-discipline-budget.json
+++ b/type-discipline-budget.json
@@@ -1,9 -1,9 +1,9 @@@
{
"LIT001": {
- "limit": 23021
- "limit": 23039
++ "limit": 23003
},
"LIT002": {
- "limit": 27148
- "limit": 27154
++ "limit": 27146
},
"LIT003": {
"limit": 269
@@@ -27,7 -27,7 +27,7 @@@
"limit": 0
},
"LIT010": {
- "limit": 16733
- "limit": 16742
++ "limit": 16731
},
"LIT011": {
"limit": 5596