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
a5f8c111
Unverified
Commit
a5f8c111
authored
May 16, 2025
by
fxmarty-amd
Committed by
GitHub
May 16, 2025
Browse files
[Fix] Fix typo in `resolve_hf_chat_template` (#18259)
Signed-off-by:
Felix Marty
<
felmarty@amd.com
>
parent
e23564cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/entrypoints/chat_utils.py
vllm/entrypoints/chat_utils.py
+2
-2
No files found.
vllm/entrypoints/chat_utils.py
View file @
a5f8c111
...
...
@@ -339,7 +339,7 @@ def resolve_hf_chat_template(
tools
:
Optional
[
list
[
dict
[
str
,
Any
]]],
*
,
model_config
:
ModelConfig
,
tr
s
ut_remote_code
:
Optional
[
bool
]
=
None
,
tru
s
t_remote_code
:
Optional
[
bool
]
=
None
,
)
->
Optional
[
str
]:
# 1st priority: The given chat template
if
chat_template
is
not
None
:
...
...
@@ -1293,4 +1293,4 @@ def apply_mistral_chat_template(
raise
ValueError
from
e
def
random_tool_call_id
()
->
str
:
return
f
"chatcmpl-tool-
{
random_uuid
()
}
"
\ No newline at end of file
return
f
"chatcmpl-tool-
{
random_uuid
()
}
"
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