diff --git a/python/sglang/srt/function_call/base_format_detector.py b/python/sglang/srt/function_call/base_format_detector.py index 3c0c2ff2182..e0e95cff473 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 @@ def parse_streaming_increment( 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