From ff2e002a920d1447a2fedaaeda3dbbb438f82a74 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 2 Mar 2024 21:10:37 -0800 Subject: [PATCH] fix(proxy/utils.py): fix pydantic model dump logic --- litellm/proxy/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 59d638c68d..c92f75f0ef 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1142,10 +1142,7 @@ class PrismaClient: ) _data: dict = {} if response is not None: - try: - _data = response.model_dump() - except Exception as e: - _data = response.dict() + _data = response.dict() return {"token": token, "data": _data} elif ( user_id is not None