From 7d29b095befb79140a5fcc672071be6912fc2fe2 Mon Sep 17 00:00:00 2001 From: ngxson Date: Sat, 29 Jun 2024 11:10:33 +0200 Subject: [PATCH] remove redundant change --- common/common.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 4b65f1668..5a0d0ee03 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1173,14 +1173,13 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa } if (arg == "--chat-template") { CHECK_ARG - std::string value(argv[i]); - if (!llama_chat_verify_template(value)) { - fprintf(stderr, "error: the supplied chat template is not supported: %s\n", value.c_str()); + if (!llama_chat_verify_template(argv[i])) { + fprintf(stderr, "error: the supplied chat template is not supported: %s\n", argv[i]); fprintf(stderr, "note: llama.cpp does not use jinja parser, we only support commonly used templates\n"); invalid_param = true; return true; } - params.chat_template = value; + params.chat_template = argv[i]; return true; } if (arg == "--slot-prompt-similarity" || arg == "-sps") {