From bba75c792f7bf7001a0f02a5a0fe2a7bfee15d45 Mon Sep 17 00:00:00 2001 From: ngxson Date: Fri, 16 Feb 2024 16:33:49 +0100 Subject: [PATCH] test-chat-template: remove dedundant vector --- tests/test-chat-template.cpp | 5 ----- 1 file changed, 5 deletions(-) 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 %}",