We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9edf660 commit bec5891Copy full SHA for bec5891
python/sglang/srt/function_call/base_format_detector.py
@@ -111,8 +111,7 @@ def parse_streaming_increment(
111
# The current_text has tool_call if it is the start of a new tool call sequence
112
# or it is the start of a new tool call after a tool call separator, when there is a previous tool call
113
if not (
114
- self.bot_token in current_text
115
- or current_text.startswith("{")
+ self.has_tool_call(current_text)
116
or (
117
self.current_tool_id > 0
118
and current_text.startswith(self.tool_call_separator + "{")
0 commit comments