From cfd87812932d9eb931a06f82736e43fdaab1eb42 Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Fri, 27 Feb 2026 13:27:24 +0530 Subject: [PATCH] Update litellm/proxy/utils.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 812c7c58889..320b58438a1 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1481,7 +1481,6 @@ class ProxyLogging: and callback.experimental_use_latest_role_message_only and isinstance(data.get("messages"), list) ): - import copy data_for_guardrail = copy.copy(data) filtered, _, _ = callback.filter_messages_for_latest_role(