diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.py index 88ad74aa5af..637446798b7 100644 --- a/litellm/integrations/custom_logger.py +++ b/litellm/integrations/custom_logger.py @@ -644,8 +644,8 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac ctype = content.get("type") return not (isinstance(ctype, str) and ctype != "text") - def _process_messages(self, messages: list[Any], max_depth: int = DEFAULT_MAX_RECURSE_DEPTH_SENSITIVE_DATA_MASKER) -> list[dict[str, Any]]: - filtered_messages: list[dict[str, Any]] = [] + def _process_messages(self, messages: list[Any], max_depth: int = DEFAULT_MAX_RECURSE_DEPTH_SENSITIVE_DATA_MASKER) -> List[dict[str, Any]]: + filtered_messages: List[dict[str, Any]] = [] for msg in messages: if not isinstance(msg, dict): continue