From 9df131d3faaaa84f89287a28a0d3ef296697669d Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 24 Apr 2026 17:52:58 -0700 Subject: [PATCH] fix(schema): close LiteLLM_MemoryTable model brace dropped during merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rebase against `litellm_internal_staging` (which added `LiteLLM_AdaptiveRouterState` / `LiteLLM_AdaptiveRouterSession`) left the closing brace of `LiteLLM_MemoryTable` missing in all three schema copies — the next model declaration ended up parsed as a field of the memory table, surfacing as the CI prisma error: error: This line is not a valid field or attribute definition. --> schema.prisma:1250 | 1249 | // Per-(router, request_type, model) Beta posterior for the adaptive router. 1250 | model LiteLLM_AdaptiveRouterState { Add the missing `}` (and the standard blank line) after the memory table's `@@index([team_id])` in `schema.prisma`, `litellm/proxy/schema.prisma`, and `litellm-proxy-extras/litellm_proxy_extras/schema.prisma`. `prisma generate --schema litellm/proxy/schema.prisma` now runs clean; 27/27 memory unit tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- litellm-proxy-extras/litellm_proxy_extras/schema.prisma | 2 ++ litellm/proxy/schema.prisma | 2 ++ schema.prisma | 2 ++ 3 files changed, 6 insertions(+) diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma index a88c62e93f8..8f07c5afa3f 100644 --- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma +++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma @@ -1246,6 +1246,8 @@ model LiteLLM_MemoryTable { @@index([user_id]) @@index([team_id]) +} + // Per-(router, request_type, model) Beta posterior for the adaptive router. model LiteLLM_AdaptiveRouterState { router_name String diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index a88c62e93f8..8f07c5afa3f 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -1246,6 +1246,8 @@ model LiteLLM_MemoryTable { @@index([user_id]) @@index([team_id]) +} + // Per-(router, request_type, model) Beta posterior for the adaptive router. model LiteLLM_AdaptiveRouterState { router_name String diff --git a/schema.prisma b/schema.prisma index a88c62e93f8..8f07c5afa3f 100644 --- a/schema.prisma +++ b/schema.prisma @@ -1246,6 +1246,8 @@ model LiteLLM_MemoryTable { @@index([user_id]) @@index([team_id]) +} + // Per-(router, request_type, model) Beta posterior for the adaptive router. model LiteLLM_AdaptiveRouterState { router_name String