Update litellm/proxy/utils.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Harshit Jain 2026-02-27 13:27:24 +05:30 committed by GitHub
parent 0cab023b4f
commit cfd8781293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(