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>
This commit is contained in:
mateo 2026-09-15 15:56:00 +00:00
parent cedee4800a
commit c504ca954e

View file

@ -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,