From d066e52013be278c7a3bc54ec9799d8457895f4d Mon Sep 17 00:00:00 2001 From: Cyrus Leung Date: Wed, 14 May 2025 20:38:21 +0800 Subject: [PATCH] [Bugfix] Fix chat utils tests (#18139) Signed-off-by: DarkLight1337 --- tests/entrypoints/test_chat_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/entrypoints/test_chat_utils.py b/tests/entrypoints/test_chat_utils.py index 43ad091971a7..9f1f2321d9e6 100644 --- a/tests/entrypoints/test_chat_utils.py +++ b/tests/entrypoints/test_chat_utils.py @@ -845,10 +845,10 @@ def test_resolve_hf_chat_template(sample_json_schema, model, use_tools): # Test detecting the tokenizer's chat_template chat_template = resolve_hf_chat_template( - model_config, tokenizer, chat_template=None, tools=tools, + model_config=model_config, ) assert isinstance(chat_template, str) @@ -890,10 +890,10 @@ def test_resolve_content_format_hf_defined(model, expected_format): # Test detecting the tokenizer's chat_template chat_template = resolve_hf_chat_template( - model_config, tokenizer, chat_template=None, tools=None, + model_config=model_config, ) assert isinstance(chat_template, str) @@ -949,10 +949,10 @@ def test_resolve_content_format_fallbacks(model, expected_format): # Test detecting the tokenizer's chat_template chat_template = resolve_hf_chat_template( - model_config, tokenizer, chat_template=None, tools=None, + model_config=model_config, ) assert isinstance(chat_template, str)