Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
fdfd5224
Unverified
Commit
fdfd5224
authored
Jun 21, 2025
by
Chang Su
Committed by
GitHub
Jun 22, 2025
Browse files
fix: Fix CI test_function_call_parser.py (#7425)
parent
7f3ee861
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/function_call/base_format_detector.py
python/sglang/srt/function_call/base_format_detector.py
+1
-1
No files found.
python/sglang/srt/function_call/base_format_detector.py
View file @
fdfd5224
...
@@ -114,7 +114,7 @@ class BaseFormatDetector(ABC):
...
@@ -114,7 +114,7 @@ class BaseFormatDetector(ABC):
self
.
has_tool_call
(
current_text
)
self
.
has_tool_call
(
current_text
)
or
(
or
(
self
.
current_tool_id
>
0
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
# Only clear buffer if we're sure no tool call is starting
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment