From bfcba21564fd993fcc769fe22bdce7674b1ee102 Mon Sep 17 00:00:00 2001 From: michelligabriele Date: Fri, 13 Mar 2026 05:01:50 +0100 Subject: [PATCH] pop litellm_logging_obj from request_data before callback loop --- litellm/proxy/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index b0d709abbb..e2df0acd21 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1729,6 +1729,9 @@ class ProxyLogging: original_exception=original_exception, ) + # Remove before callbacks iterate — not serialisable + request_data.pop("litellm_logging_obj", None) + # Track the first HTTPException returned or raised by any callback transformed_exception: Optional[HTTPException] = None