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
bump: version 0.4.51 → 0.4.52
yuneng-jiang55f448abb819
diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex 6d20a71f039..329ff80933f 100644--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@ -63,6 +63,8 @@ model LiteLLM_AgentsTable {agent_name String @uniquelitellm_params Json?agent_card_params Json+ static_headers Json? @default("{}")+ extra_headers String[] @default([])agent_access_groups String[] @default([])object_permission_id String?object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])@@ -288,6 +290,8 @@ model LiteLLM_MCPServerTable {mcp_info Json? @default("{}")mcp_access_groups String[]allowed_tools String[] @default([])+ tool_name_to_display_name Json? @default("{}")+ tool_name_to_description Json? @default("{}")extra_headers String[] @default([])static_headers Json? @default("{}")// Health check status@@ -303,6 +307,21 @@ model LiteLLM_MCPServerTable {registration_url String?allow_all_keys Boolean @default(false)available_on_public_internet Boolean @default(true)+ is_byok Boolean @default(false)+ byok_description String[] @default([])+ byok_api_key_help_url String?+}++// Per-user BYOK credentials for MCP servers+model LiteLLM_MCPUserCredentials {+ id String @id @default(uuid())+ user_id String+ server_id String+ credential_b64 String+ created_at DateTime @default(now()) @map("created_at")+ updated_at DateTime @default(now()) @updatedAt @map("updated_at")++ @@unique([user_id, server_id])}// Generate Tokens for Proxy@@ -353,6 +372,7 @@ model LiteLLM_VerificationToken {litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])litellm_project_table LiteLLM_ProjectTable? @relation(fields: [project_id], references: [project_id])object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])+ jwt_key_mappings LiteLLM_JWTKeyMapping[]// SELECT COUNT(*) FROM (SELECT "public"."LiteLLM_VerificationToken"."token" FROM "public"."LiteLLM_VerificationToken" WHERE ("public"."LiteLLM_VerificationToken"."user_id" = $1 AND ("public"."LiteLLM_VerificationToken"."team_id" IS NULL OR "public"."LiteLLM_VerificationToken"."team_id" <> $2)) OFFSET $3 ) AS "sub"// SELECT ... FROM "public"."LiteLLM_VerificationToken" WHERE "public"."LiteLLM_VerificationToken"."user_id" = $1 OFFSET $2@@ -365,6 +385,24 @@ model LiteLLM_VerificationToken {@@index([budget_reset_at, expires])}+model LiteLLM_JWTKeyMapping {+ id String @id @default(uuid())+ jwt_claim_name String // e.g. "sub", "email"+ jwt_claim_value String // The claim value to match+ token String // Hashed virtual key (FK)+ description String?+ is_active Boolean @default(true)+ created_at DateTime @default(now())+ created_by String?+ updated_at DateTime @default(now()) @updatedAt+ updated_by String?++ litellm_verification_token LiteLLM_VerificationToken @relation(fields: [token], references: [token])++ @@unique([jwt_claim_name, jwt_claim_value])+ @@index([jwt_claim_name, jwt_claim_value, is_active])+}+// Deprecated keys during grace period - allows old key to work until revoke_atmodel LiteLLM_DeprecatedVerificationToken {id String @id @default(uuid())@@ -1019,6 +1057,14 @@ model LiteLLM_UISettings {updated_at DateTime @updatedAt}+// Generic config overrides table - one row per config_type+model LiteLLM_ConfigOverrides {+ config_type String @id+ config_value Json+ created_at DateTime @default(now())+ updated_at DateTime @updatedAt+}+// Skills table for storing LiteLLM-managed skillsmodel LiteLLM_SkillsTable {skill_id String @id @default(uuid())@@ -1077,24 +1123,24 @@ model LiteLLM_PolicyAttachmentTable {updated_by String?}-// Global tool registry - auto-discovered from LLM responses; admins set input_policy/output_policy here+// Global tool registry - auto-discovered from LLM responses; admins set input/output policies heremodel LiteLLM_ToolTable {- tool_id String @id @default(uuid())- tool_name String @unique // e.g. "huggingface_remote-mcp__dynamic_space"- origin String? // MCP server name or "user_defined"- input_policy String @default("untrusted") // "trusted" | "untrusted" | "blocked"- output_policy String @default("untrusted") // "trusted" | "untrusted"- call_count Int @default(0) // cumulative number of times this tool was seen- assignments Json? @default("{}")- key_hash String? // hash of the virtual key that first called this tool- team_id String? // team that first called this tool- key_alias String? // human-readable alias of the virtual key- user_agent String? // user-agent of the first request that discovered this tool- last_used_at DateTime? // timestamp of the most recent call- created_at DateTime @default(now())- created_by String?- updated_at DateTime @default(now()) @updatedAt- updated_by String?+ tool_id String @id @default(uuid())+ tool_name String @unique // e.g. "huggingface_remote-mcp__dynamic_space"+ origin String? // MCP server name or "user_defined"+ input_policy String @default("untrusted") // "trusted" | "untrusted" | "blocked"+ output_policy String @default("untrusted") // "trusted" | "untrusted"+ call_count Int @default(0) // cumulative number of times this tool was seen+ assignments Json? @default("{}")+ key_hash String? // hash of the virtual key that first called this tool+ team_id String? // team that first called this tool+ key_alias String? // human-readable alias of the virtual key+ user_agent String? // user-agent of the first request that discovered this tool+ last_used_at DateTime? // timestamp of the most recent call+ created_at DateTime @default(now())+ created_by String?+ updated_at DateTime @default(now()) @updatedAt+ updated_by String?@@index([input_policy])@@index([output_policy])diff --git a/litellm-proxy-extras/pyproject.toml b/litellm-proxy-extras/pyproject.tomlindex 634d5ba6d41..25533a09f05 100644--- a/litellm-proxy-extras/pyproject.toml+++ b/litellm-proxy-extras/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "litellm-proxy-extras"-version = "0.4.51"+version = "0.4.52"description = "Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package."authors = ["BerriAI"]readme = "README.md"@@ -22,7 +22,7 @@ requires = ["poetry-core"]build-backend = "poetry.core.masonry.api"[tool.commitizen]-version = "0.4.51"+version = "0.4.52"version_files = ["pyproject.toml:version","../requirements.txt:litellm-proxy-extras==",diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex 4210afc11d4..329ff80933f 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -1147,6 +1147,7 @@ model LiteLLM_ToolTable {@@index([team_id])}+// Per-(tool, team/key) policy overrides. When present, override replaces global tool policy for that scope.//Unified Access Groups table for storing unified access groupsmodel LiteLLM_AccessGroupTable {access_group_id String @id @default(uuid())diff --git a/pyproject.toml b/pyproject.tomlindex 96f800d9e15..0c42c18c70d 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -61,7 +61,7 @@ boto3 = { version = "1.40.76", optional = true }redisvl = {version = "^0.4.1", optional = true, markers = "python_version >= '3.9' and python_version < '3.14'"}mcp = {version = ">=1.25.0,<2.0.0", optional = true, python = ">=3.10"}a2a-sdk = {version = "^0.3.22", optional = true, python = ">=3.10"}-litellm-proxy-extras = {version = "0.4.51", optional = true}+litellm-proxy-extras = {version = "0.4.52", optional = true}rich = {version = "13.7.1", optional = true}litellm-enterprise = {version = "0.1.33", optional = true}diskcache = {version = "^5.6.1", optional = true}diff --git a/requirements.txt b/requirements.txtindex c44c97ac6c8..a6446dc0cf1 100644--- a/requirements.txt+++ b/requirements.txt@@ -57,7 +57,7 @@ grpcio>=1.75.0; python_version >= "3.14"sentry_sdk==2.21.0 # for sentry error handlingdetect-secrets==1.5.0 # Enterprise - secret detection / masking in LLM requeststzdata==2025.1 # IANA time zone database-litellm-proxy-extras==0.4.51 # for proxy extras - e.g. prisma migrations+litellm-proxy-extras==0.4.52 # for proxy extras - e.g. prisma migrationsllm-sandbox==0.3.31 # for skill execution in sandbox### LITELLM PACKAGE DEPENDENCIESpython-dotenv==1.0.1 # for envdiff --git a/schema.prisma b/schema.prismaindex f7c07112417..329ff80933f 100644--- a/schema.prisma+++ b/schema.prisma@@ -63,6 +63,8 @@ model LiteLLM_AgentsTable {agent_name String @uniquelitellm_params Json?agent_card_params Json+ static_headers Json? @default("{}")+ extra_headers String[] @default([])agent_access_groups String[] @default([])object_permission_id String?object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])@@ -288,6 +290,8 @@ model LiteLLM_MCPServerTable {mcp_info Json? @default("{}")mcp_access_groups String[]allowed_tools String[] @default([])+ tool_name_to_display_name Json? @default("{}")+ tool_name_to_description Json? @default("{}")extra_headers String[] @default([])static_headers Json? @default("{}")// Health check status@@ -303,6 +307,21 @@ model LiteLLM_MCPServerTable {registration_url String?allow_all_keys Boolean @default(false)available_on_public_internet Boolean @default(true)+ is_byok Boolean @default(false)+ byok_description String[] @default([])+ byok_api_key_help_url String?+}++// Per-user BYOK credentials for MCP servers+model LiteLLM_MCPUserCredentials {+ id String @id @default(uuid())+ user_id String+ server_id String+ credential_b64 String+ created_at DateTime @default(now()) @map("created_at")+ updated_at DateTime @default(now()) @updatedAt @map("updated_at")++ @@unique([user_id, server_id])}// Generate Tokens for Proxy@@ -353,6 +372,7 @@ model LiteLLM_VerificationToken {litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])litellm_project_table LiteLLM_ProjectTable? @relation(fields: [project_id], references: [project_id])object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])+ jwt_key_mappings LiteLLM_JWTKeyMapping[]// SELECT COUNT(*) FROM (SELECT "public"."LiteLLM_VerificationToken"."token" FROM "public"."LiteLLM_VerificationToken" WHERE ("public"."LiteLLM_VerificationToken"."user_id" = $1 AND ("public"."LiteLLM_VerificationToken"."team_id" IS NULL OR "public"."LiteLLM_VerificationToken"."team_id" <> $2)) OFFSET $3 ) AS "sub"// SELECT ... FROM "public"."LiteLLM_VerificationToken" WHERE "public"."LiteLLM_VerificationToken"."user_id" = $1 OFFSET $2@@ -365,6 +385,24 @@ model LiteLLM_VerificationToken {@@index([budget_reset_at, expires])}+model LiteLLM_JWTKeyMapping {+ id String @id @default(uuid())+ jwt_claim_name String // e.g. "sub", "email"+ jwt_claim_value String // The claim value to match+ token String // Hashed virtual key (FK)+ description String?+ is_active Boolean @default(true)+ created_at DateTime @default(now())+ created_by String?+ updated_at DateTime @default(now()) @updatedAt+ updated_by String?++ litellm_verification_token LiteLLM_VerificationToken @relation(fields: [token], references: [token])++ @@unique([jwt_claim_name, jwt_claim_value])+ @@index([jwt_claim_name, jwt_claim_value, is_active])+}+// Deprecated keys during grace period - allows old key to work until revoke_atmodel LiteLLM_DeprecatedVerificationToken {id String @id @default(uuid())@@ -1019,6 +1057,14 @@ model LiteLLM_UISettings {updated_at DateTime @updatedAt}+// Generic config overrides table - one row per config_type+model LiteLLM_ConfigOverrides {+ config_type String @id+ config_value Json+ created_at DateTime @default(now())+ updated_at DateTime @updatedAt+}+// Skills table for storing LiteLLM-managed skillsmodel LiteLLM_SkillsTable {skill_id String @id @default(uuid())@@ -1101,6 +1147,7 @@ model LiteLLM_ToolTable {@@index([team_id])}+// Per-(tool, team/key) policy overrides. When present, override replaces global tool policy for that scope.//Unified Access Groups table for storing unified access groupsmodel LiteLLM_AccessGroupTable {access_group_id String @id @default(uuid())