Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
941e52c2
Unverified
Commit
941e52c2
authored
Mar 09, 2026
by
Wentao Ye
Committed by
GitHub
Mar 09, 2026
Browse files
[Refactor] Simplify `chat_completion_full_generator` for tool parsers (#35634)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
be292b7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
vllm/entrypoints/openai/chat_completion/serving.py
vllm/entrypoints/openai/chat_completion/serving.py
+1
-11
No files found.
vllm/entrypoints/openai/chat_completion/serving.py
View file @
941e52c2
...
...
@@ -1463,17 +1463,7 @@ class OpenAIServingChat(OpenAIServing):
tool_call_class
=
(
MistralToolCall
if
is_mistral_tokenizer
(
tokenizer
)
else
ToolCall
)
if
self
.
use_harmony
:
# Harmony models already have parsed content and tool_calls
# through parse_chat_output. Respect its output directly.
message
=
ChatMessage
(
role
=
role
,
reasoning
=
reasoning
,
content
=
content
,
tool_calls
=
tool_calls
if
tool_calls
else
[],
)
elif
(
not
self
.
enable_auto_tools
or
not
self
.
tool_parser
)
and
(
if
(
not
self
.
enable_auto_tools
or
not
self
.
tool_parser
)
and
(
not
isinstance
(
request
.
tool_choice
,
ChatCompletionNamedToolChoiceParam
)
and
request
.
tool_choice
!=
"required"
):
...
...
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