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
Revert "feat(schema): add additional indexes to LiteLLM_SpendLogs for improve…" (#11683)
Krish Dholakiaeb0d0c2f72ae
diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex ac8834018d3..8088edf29ed 100644--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@ -266,9 +266,6 @@ model LiteLLM_SpendLogs {@@index([startTime])@@index([end_user])@@index([session_id])- @@index([model_group, cache_hit, startTime, api_base])- @@index([model_group, cache_hit, api_key, startTime])- @@index([model_group, cache_hit, end_user, startTime])}// View spend, model, api_key per requestdiff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex 78266fe4388..dc16a0ceaf0 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -265,9 +265,6 @@ model LiteLLM_SpendLogs {@@index([startTime])@@index([end_user])@@index([session_id])- @@index([model_group, cache_hit, startTime, api_base])- @@index([model_group, cache_hit, api_key, startTime])- @@index([model_group, cache_hit, end_user, startTime])}// View spend, model, api_key per requestdiff --git a/schema.prisma b/schema.prismaindex 0b5cecd69d4..032b9e0b58d 100644--- a/schema.prisma+++ b/schema.prisma@@ -265,9 +265,6 @@ model LiteLLM_SpendLogs {@@index([startTime])@@index([end_user])@@index([session_id])- @@index([model_group, cache_hit, startTime, api_base])- @@index([model_group, cache_hit, api_key, startTime])- @@index([model_group, cache_hit, end_user, startTime])}// View spend, model, api_key per request