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
Add organization_id to spend logs table
yuneng-jiangdd72ff3abf5b
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20251122125322_Add organization_id to spend logs/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20251122125322_Add organization_id to spend logs/migration.sqlnew file mode 100644index 00000000000..4ea082f2750--- /dev/null+++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20251122125322_Add organization_id to spend logs/migration.sql@@ -0,0 +1,3 @@+-- AlterTable+ALTER TABLE "LiteLLM_SpendLogs" ADD COLUMN "organization_id" TEXT;+diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex e11dca1531c..2883dfc4b82 100644--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@ -304,6 +304,7 @@ model LiteLLM_SpendLogs {cache_key String? @default("")request_tags Json? @default("[]")team_id String?+ organization_id String?end_user String?requester_ip_address String?messages Json? @default("{}")diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex e11dca1531c..2883dfc4b82 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -304,6 +304,7 @@ model LiteLLM_SpendLogs {cache_key String? @default("")request_tags Json? @default("[]")team_id String?+ organization_id String?end_user String?requester_ip_address String?messages Json? @default("{}")diff --git a/schema.prisma b/schema.prismaindex e11dca1531c..2883dfc4b82 100644--- a/schema.prisma+++ b/schema.prisma@@ -304,6 +304,7 @@ model LiteLLM_SpendLogs {cache_key String? @default("")request_tags Json? @default("[]")team_id String?+ organization_id String?end_user String?requester_ip_address String?messages Json? @default("{}")