diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 7ae832fceb..61cae71bd9 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -5820,7 +5820,10 @@ async def new_team( } }, ) - return team_row + try: + return team_row.model_dump() + except Exception as e: + return team_row.dict() @router.post(