diff --git a/tests/test-chat-template.cpp b/tests/test-chat-template.cpp index 23d02a7d2..23f576778 100644 --- a/tests/test-chat-template.cpp +++ b/tests/test-chat-template.cpp @@ -18,11 +18,6 @@ int main(void) { {"user", "Another question"}, }; size_t message_count = 6; - std::vector conversation_vec; - conversation_vec.resize(message_count); - for (size_t i = 0; i < message_count; i++) { - conversation_vec[i] = &conversation[i]; - } std::vector templates = { // teknium/OpenHermes-2.5-Mistral-7B "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\\n' + message['content'] + '<|im_end|>' + '\\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\\n' }}{% endif %}",