Skip to content

Commit 6eabc94

Browse files
authored
remove system_prompt_file
1 parent 3bad228 commit 6eabc94

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

common/arg.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,6 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
857857
if (!file) {
858858
throw std::runtime_error(string_format("error: failed to open file '%s'\n", value.c_str()));
859859
}
860-
// store the external file name in params
861-
params.system_prompt_file = value;
862860
std::copy(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>(), back_inserter(params.system_prompt));
863861
if (!params.system_prompt.empty() && params.system_prompt.back() == '\n') {
864862
params.system_prompt.pop_back();

common/common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ struct common_params {
276276
std::string prompt = ""; // NOLINT
277277
std::string system_prompt = ""; // NOLINT
278278
std::string prompt_file = ""; // store the external prompt file name // NOLINT
279-
std::string system_prompt_file = ""; // store the external system prompt file name // NOLINT
280279
std::string path_prompt_cache = ""; // path to file for saving/loading prompt eval state // NOLINT
281280
std::string input_prefix = ""; // string to prefix user inputs with // NOLINT
282281
std::string input_suffix = ""; // string to suffix user inputs with // NOLINT

0 commit comments

Comments
 (0)