[Fix] Fix typo in resolve_hf_chat_template (#18259)

Signed-off-by: Felix Marty <felmarty@amd.com>
This commit is contained in:
fxmarty-amd
2025-05-16 16:52:41 +02:00
committed by GitHub
parent e23564cb70
commit a5f8c111c2

View File

@ -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()}"