From c504ca954e2cd1c061d2e5f662c96179005570e7 Mon Sep 17 00:00:00 2001 From: mateo Date: Tue, 15 Sep 2026 15:56:00 +0000 Subject: [PATCH] fix(proxy): annotate db user row with the prisma model type Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/login_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/login_utils.py b/litellm/proxy/auth/login_utils.py index 80289aebb9e..e9a56aab481 100644 --- a/litellm/proxy/auth/login_utils.py +++ b/litellm/proxy/auth/login_utils.py @@ -14,6 +14,7 @@ from typing import TYPE_CHECKING, Final, Literal import jwt from fastapi import HTTPException +from prisma.models import LiteLLM_UserTable as PrismaUser import litellm from litellm._logging import verbose_proxy_logger @@ -251,7 +252,7 @@ async def authenticate_user( ) # Check if we can find the `username` in the db. On the UI, users can enter username=their email - _user_row: LiteLLM_UserTable | None = None + _user_row: PrismaUser | None = None user_role: ( Literal[ LitellmUserRoles.PROXY_ADMIN,