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_budget_reset_uow

mateo-berri9b972a495111
diff --cc litellm/proxy/common_utils/reset_budget_job.py
index 1537958063a,450dc12a9ff..39fdc0216a0
--- a/litellm/proxy/common_utils/reset_budget_job.py
+++ b/litellm/proxy/common_utils/reset_budget_job.py
@@@ -1,9 -1,9 +1,9 @@@
import asyncio
import json
import time
-from collections.abc import Callable, Mapping, Sequence
+from collections.abc import Callable, Sequence
from datetime import datetime, timezone
- from typing import Literal, Protocol, TypeVar
+ from typing import Final, Literal, Protocol, TypeVar
import litellm
from litellm._logging import verbose_proxy_logger
@@@ -436,8 -466,8 +436,8 @@@ class ResetBudgetJob
rely on the default budget (litellm.max_end_user_budget_id) applied
in-memory during auth checks.
"""
- table: ReadOnlyTable = EndUserRepository(self.prisma_client).table
- rows = await table.find_many(
- table: Final[_EndUserTable] = EndUserRepository(self.prisma_client).table
++ table: Final[ReadOnlyTable] = EndUserRepository(self.prisma_client).table
+ rows: Final = await table.find_many(
where={
"budget_id": None,
"spend": {"gt": 0},