From 0737fdb3484247ee95c3f78e9dac9ed32549a599 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 27 Mar 2024 20:35:45 -0700 Subject: [PATCH] (fix) remove deep copy for all requests --- litellm/proxy/proxy_server.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 8fa2862f276..c3a91bdfa99 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -3084,7 +3084,6 @@ async def chat_completion( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } ## Cache Controls @@ -3312,7 +3311,6 @@ async def embeddings( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } if data.get("user", None) is None and user_api_key_dict.user_id is not None: @@ -3488,7 +3486,6 @@ async def image_generation( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } if data.get("user", None) is None and user_api_key_dict.user_id is not None: @@ -3641,7 +3638,6 @@ async def audio_transcriptions( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } if data.get("user", None) is None and user_api_key_dict.user_id is not None: @@ -3811,7 +3807,6 @@ async def moderations( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } if data.get("user", None) is None and user_api_key_dict.user_id is not None: @@ -6802,7 +6797,6 @@ async def async_queue_request( "url": str(request.url), "method": request.method, "headers": dict(request.headers), - "body": copy.copy(data), # use copy instead of deepcopy } verbose_proxy_logger.debug("receiving data: %s", data)