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
ea10dd9d
Unverified
Commit
ea10dd9d
authored
Jun 20, 2025
by
xzbdmw
Committed by
GitHub
Jun 19, 2025
Browse files
[Frontend] early return chat format resolution when specified (#19735)
parent
ead21102
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/entrypoints/chat_utils.py
vllm/entrypoints/chat_utils.py
+4
-1
No files found.
vllm/entrypoints/chat_utils.py
View file @
ea10dd9d
...
...
@@ -448,6 +448,9 @@ def resolve_chat_template_content_format(
model_config
:
ModelConfig
,
trust_remote_code
:
Optional
[
bool
]
=
None
,
)
->
_ChatTemplateContentFormat
:
if
given_format
!=
"auto"
:
return
given_format
detected_format
=
_resolve_chat_template_content_format
(
chat_template
,
tools
,
...
...
@@ -461,7 +464,7 @@ def resolve_chat_template_content_format(
detected_format
=
detected_format
,
)
return
detected_format
if
given_format
==
"auto"
else
given_format
return
detected_format
...
...
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