fix _process_messages

This commit is contained in:
Ishaan Jaffer 2025-10-28 16:47:52 -07:00
parent cf78b3464c
commit 23b1f1afda

View file

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