From ec4fae59c277348f78efcca5f9daad6b19c2cf4b Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Fri, 16 Jan 2026 17:03:09 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 3990: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- litellm/litellm_core_utils/prompt_templates/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index 16d8e93cbfc..d04c2ef86a7 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -2174,7 +2174,7 @@ def _is_orphaned_tool_result( if not found_matching_tool_call: verbose_logger.debug( - f"_is_orphaned_tool_result: Found orphaned tool result with tool_call_id={tool_call_id}" + "_is_orphaned_tool_result: Found orphaned tool result with redacted tool_call_id" ) return True