Skip to content

Commit bec5891

Browse files
authored
[BugFix]fix qwen25 invoke function call streaming responses with curly braces as the starting indicator (#7394)
1 parent 9edf660 commit bec5891

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/sglang/srt/function_call/base_format_detector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def parse_streaming_increment(
111111
# The current_text has tool_call if it is the start of a new tool call sequence
112112
# or it is the start of a new tool call after a tool call separator, when there is a previous tool call
113113
if not (
114-
self.bot_token in current_text
115-
or current_text.startswith("{")
114+
self.has_tool_call(current_text)
116115
or (
117116
self.current_tool_id > 0
118117
and current_text.startswith(self.tool_call_separator + "{")

0 commit comments

Comments
 (0)