Unverified Commit bec58910 authored by ehuaa's avatar ehuaa Committed by GitHub
Browse files

[BugFix]fix qwen25 invoke function call streaming responses with curly braces...

[BugFix]fix qwen25 invoke function call streaming responses with curly braces as the starting indicator (#7394)
parent 9edf6608
......@@ -111,8 +111,7 @@ class BaseFormatDetector(ABC):
# The current_text has tool_call if it is the start of a new tool call sequence
# or it is the start of a new tool call after a tool call separator, when there is a previous tool call
if not (
self.bot_token in current_text
or current_text.startswith("{")
self.has_tool_call(current_text)
or (
self.current_tool_id > 0
and current_text.startswith(self.tool_call_separator + "{")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment