From bf6c80c7e80c2c88547a5caca3a3f9b1ea321f0b Mon Sep 17 00:00:00 2001 From: sfbemerk Date: Wed, 14 Oct 2026 17:03:11 +0200 Subject: [PATCH] [Misc] Remove tool name from warn logs (#59294) Signed-off-by: Benjamin Merkel Co-authored-by: Benjamin Merkel Co-authored-by: Chauncey --- vllm/renderers/chat_utils/chat_message.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vllm/renderers/chat_utils/chat_message.py b/vllm/renderers/chat_utils/chat_message.py index bde4263074..bc4ae23f83 100644 --- a/vllm/renderers/chat_utils/chat_message.py +++ b/vllm/renderers/chat_utils/chat_message.py @@ -720,10 +720,9 @@ def _postprocess_messages(messages: list[ConversationMessage]) -> None: # leave the conversation unrecoverable. Coerce # to an empty object so the turn can proceed. logger.warning( - "Tool call %r has arguments that are not valid " + "Tool call has arguments that are not valid " "JSON (%d chars); coercing to an empty object " "so the conversation can continue.", - function.get("name"), len(content), ) parsed = None @@ -736,9 +735,8 @@ def _postprocess_messages(messages: list[ConversationMessage]) -> None: # "42", "true"). # Chat templates require a mapping. logger.warning( - "Tool call %r arguments decoded to %s, not a " + "Tool call arguments decoded to %s, not a " "JSON object; coercing to an empty object.", - function.get("name"), type(parsed).__name__, ) parsed = {}