diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index c92f75f0e..fc90c3b7b 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1142,7 +1142,10 @@ class PrismaClient: ) _data: dict = {} if response is not None: - _data = response.dict() + try: + _data = response.model_dump() # type: ignore + except Exception as e: + _data = response.dict() return {"token": token, "data": _data} elif ( user_id is not None