Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Potential fix for code scanning alert no. 3990: Clear-text logging of sensitive information

Sameer Kankuteec4fae59c277
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