From fdfd5224bffa0840d5c89577d53b2c73ec731c3c Mon Sep 17 00:00:00 2001 From: Chang Su Date: Sat, 21 Jun 2025 09:25:08 -0700 Subject: [PATCH] fix: Fix CI test_function_call_parser.py (#7425) --- python/sglang/srt/function_call/base_format_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/srt/function_call/base_format_detector.py b/python/sglang/srt/function_call/base_format_detector.py index 3c0c2ff21..e0e95cff4 100644 --- a/python/sglang/srt/function_call/base_format_detector.py +++ b/python/sglang/srt/function_call/base_format_detector.py @@ -114,7 +114,7 @@ class BaseFormatDetector(ABC): self.has_tool_call(current_text) or ( self.current_tool_id > 0 - and current_text.startswith(self.tool_call_separator + "{") + and current_text.startswith(self.tool_call_separator) ) ): # Only clear buffer if we're sure no tool call is starting