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
755a3661
"examples/pytorch/vscode:/vscode.git/clone" did not exist on "98792a8ae397e73d03a2b99fc2c0be296a8251ad"
Unverified
Commit
755a3661
authored
May 27, 2025
by
Shi Shuai
Committed by
GitHub
May 26, 2025
Browse files
fix: added "\n" to qwen25 tool parser structural tags (#6631)
parent
79a39ac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/function_call/qwen25_detector.py
python/sglang/srt/function_call/qwen25_detector.py
+2
-2
No files found.
python/sglang/srt/function_call/qwen25_detector.py
View file @
755a3661
...
...
@@ -106,8 +106,8 @@ class Qwen25Detector(BaseFormatDetector):
def
structure_info
(
self
)
->
_GetInfoFunc
:
# TODO: Update the begin and end tokens with '\n' if necessary
return
lambda
name
:
StructureInfo
(
begin
=
'<tool_call>{"name":"'
+
name
+
'", "arguments":'
,
end
=
"}</tool_call>"
,
begin
=
'<tool_call>
\n
{"name":"'
+
name
+
'", "arguments":'
,
end
=
"}
\n
</tool_call>"
,
trigger
=
"<tool_call>"
,
)
...
...
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