From 68dbde5dbb11b9250454d0c9f21a8b3da960b341 Mon Sep 17 00:00:00 2001 From: Cheng Kuan Yong Jason Date: Tue, 16 Sep 2025 15:16:32 +0800 Subject: [PATCH] [Bugfix] remove duplicate tokens streamed in required tool choice streaming (#23312) Signed-off-by: Jason Cheng Co-authored-by: Chauncey --- vllm/entrypoints/openai/serving_chat.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/vllm/entrypoints/openai/serving_chat.py b/vllm/entrypoints/openai/serving_chat.py index 579f6f537ee2..6c9c1ae85f57 100644 --- a/vllm/entrypoints/openai/serving_chat.py +++ b/vllm/entrypoints/openai/serving_chat.py @@ -828,9 +828,6 @@ class OpenAIServingChat(OpenAIServing): history_tool_call_cnt += 1 tools_streamed[i] = True - # update the previous values for the next iteration - previous_texts[i] = current_text - # handle streaming deltas for tools with "auto" tool choice # and reasoning parser elif tool_choice_auto and self.reasoning_parser: