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 branch 'litellm_window_spend_writer' into litellm_window_spend_reader
ryan-crabbe-berrie8994e8ce171
diff --cc litellm/repositories/table_repositories.pyindex d3c79bb4f6f,e02f652caf6..3a3593cc5f3--- a/litellm/repositories/table_repositories.py+++ b/litellm/repositories/table_repositories.py@@@ -62,11 -68,7 +68,11 @@@ class SpendLogsRepository(PrismaTableRetable_name = "litellm_spendlogs"- class BudgetWindowSpendRepository(PrismaTableRepository):++class BudgetWindowSpendRepository(PrismaTableRepository["prisma_models.LiteLLM_BudgetWindowSpend"]):+ table_name = "litellm_budgetwindowspend"++- class ClaudeCodePluginRepository(PrismaTableRepository):+ class ClaudeCodePluginRepository(PrismaTableRepository["prisma_models.LiteLLM_ClaudeCodePluginTable"]):table_name = "litellm_claudecodeplugintable"diff --cc tests/test_litellm/proxy/test_proxy_server.pyindex 9af0881e15b,70736949628..7efd33065ea--- a/tests/test_litellm/proxy/test_proxy_server.py+++ b/tests/test_litellm/proxy/test_proxy_server.py@@@ -7834,11 -7996,8 +8000,9 @@@ async def test_window_spend_counter_redcounter_cache.redis_cache = fake_redisfake_prisma = MagicMock()+ fake_prisma.db.litellm_budgetwindowspend.find_unique = AsyncMock(return_value=None)fake_prisma.db.litellm_spendlogs.group_by = AsyncMock(- return_value=[- {"api_key": "key-window-concurrent-seed", "_sum": {"spend": 2.25}}- ]+ return_value=[{"api_key": "key-window-concurrent-seed", "_sum": {"spend": 2.25}}])import litellm.proxy.proxy_server as ps