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 remote-tracking branch 'origin/main' into litellm_add_spendlogs_api_key_startTime_index
Yuneng Jiang9207c9a3d845
diff --cc litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex 78e1631e114,139fb031671..c0c528bc743--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@@ -647,9 -677,21 +677,22 @@@ model LiteLLM_SpendLogs@@index([startTime, request_id])@@index([end_user])@@index([session_id])+ @@index([litellm_call_id])+ @@index([api_key, startTime])}+ model LiteLLM_BudgetWindowSpend {+ entity_type String+ entity_id String+ window_duration String+ window_start DateTime+ spend Float @default(0.0)+ created_at DateTime @default(now())+ updated_at DateTime @updatedAt++ @@id([entity_type, entity_id, window_duration])+ }+// View spend, model, api_key per requestmodel LiteLLM_ErrorLogs {request_id String @id @default(uuid())diff --cc litellm/proxy/schema.prismaindex 78e1631e114,139fb031671..c0c528bc743--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@@ -647,9 -677,21 +677,22 @@@ model LiteLLM_SpendLogs@@index([startTime, request_id])@@index([end_user])@@index([session_id])+ @@index([litellm_call_id])+ @@index([api_key, startTime])}+ model LiteLLM_BudgetWindowSpend {+ entity_type String+ entity_id String+ window_duration String+ window_start DateTime+ spend Float @default(0.0)+ created_at DateTime @default(now())+ updated_at DateTime @updatedAt++ @@id([entity_type, entity_id, window_duration])+ }+// View spend, model, api_key per requestmodel LiteLLM_ErrorLogs {request_id String @id @default(uuid())diff --cc schema.prismaindex 78e1631e114,139fb031671..c0c528bc743--- a/schema.prisma+++ b/schema.prisma@@@ -647,9 -677,21 +677,22 @@@ model LiteLLM_SpendLogs@@index([startTime, request_id])@@index([end_user])@@index([session_id])+ @@index([litellm_call_id])+ @@index([api_key, startTime])}+ model LiteLLM_BudgetWindowSpend {+ entity_type String+ entity_id String+ window_duration String+ window_start DateTime+ spend Float @default(0.0)+ created_at DateTime @default(now())+ updated_at DateTime @updatedAt++ @@id([entity_type, entity_id, window_duration])+ }+// View spend, model, api_key per requestmodel LiteLLM_ErrorLogs {request_id String @id @default(uuid())