Skip to content

Commit d066e52

Browse files
[Bugfix] Fix chat utils tests (#18139)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
1 parent c8ea982 commit d066e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/entrypoints/test_chat_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,10 +845,10 @@ def test_resolve_hf_chat_template(sample_json_schema, model, use_tools):
845845

846846
# Test detecting the tokenizer's chat_template
847847
chat_template = resolve_hf_chat_template(
848-
model_config,
849848
tokenizer,
850849
chat_template=None,
851850
tools=tools,
851+
model_config=model_config,
852852
)
853853
assert isinstance(chat_template, str)
854854

@@ -890,10 +890,10 @@ def test_resolve_content_format_hf_defined(model, expected_format):
890890

891891
# Test detecting the tokenizer's chat_template
892892
chat_template = resolve_hf_chat_template(
893-
model_config,
894893
tokenizer,
895894
chat_template=None,
896895
tools=None,
896+
model_config=model_config,
897897
)
898898
assert isinstance(chat_template, str)
899899

@@ -949,10 +949,10 @@ def test_resolve_content_format_fallbacks(model, expected_format):
949949

950950
# Test detecting the tokenizer's chat_template
951951
chat_template = resolve_hf_chat_template(
952-
model_config,
953952
tokenizer,
954953
chat_template=None,
955954
tools=None,
955+
model_config=model_config,
956956
)
957957
assert isinstance(chat_template, str)
958958

0 commit comments

Comments
 (0)