From a705bc96fbe0f79e7eee69665812bd6d775ad13c Mon Sep 17 00:00:00 2001 From: alchemicjon Date: Tue, 20 Oct 2026 10:28:23 -0400 Subject: [PATCH] fix: format redact_messages.py --- litellm/litellm_core_utils/redact_messages.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/redact_messages.py b/litellm/litellm_core_utils/redact_messages.py index 18bacc88c6c..286f2aa8b77 100644 --- a/litellm/litellm_core_utils/redact_messages.py +++ b/litellm/litellm_core_utils/redact_messages.py @@ -148,7 +148,11 @@ def _redacted_provider_specific_fields(fields: Mapping[str, object]) -> Mapping[ **fields, **({"reasoning_content": REDACTED_BY_LITELLM} if fields.get("reasoning_content") is not None else {}), **({"reasoning": REDACTED_BY_LITELLM} if fields.get("reasoning") is not None else {}), - **{key: None for key in ("thinking_blocks", "reasoningContentBlocks", "citations", "reasoning_details") if key in fields}, + **{ + key: None + for key in ("thinking_blocks", "reasoningContentBlocks", "citations", "reasoning_details") + if key in fields + }, }