[Bugfix] Fix chat utils tests (#18139)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung 2025-05-14 20:38:21 +08:00 committed by GitHub
parent c8ea982d9b
commit d066e52013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)