mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
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:
parent
cedee4800a
commit
c504ca954e
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue