fix: Fix CI test_function_call_parser.py (#7425)

This commit is contained in:
Chang Su
2025-06-21 09:25:08 -07:00
committed by GitHub
parent 7f3ee861ae
commit fdfd5224bf

View File

@@ -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