mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
[Fix] Fix typo in resolve_hf_chat_template
(#18259)
Signed-off-by: Felix Marty <felmarty@amd.com>
This commit is contained in:
@ -339,7 +339,7 @@ def resolve_hf_chat_template(
|
||||
tools: Optional[list[dict[str, Any]]],
|
||||
*,
|
||||
model_config: ModelConfig,
|
||||
trsut_remote_code: Optional[bool] = None,
|
||||
trust_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()}"
|
||||
return f"chatcmpl-tool-{random_uuid()}"
|
||||
|
Reference in New Issue
Block a user