From acec9eaaa93315711c11d15afa8d245d164b7cff Mon Sep 17 00:00:00 2001 From: staviq Date: Thu, 5 Oct 2023 18:17:29 +0200 Subject: [PATCH] common : process escape sequences in reverse prompts (#3461) --- common/common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/common.cpp b/common/common.cpp index 7370017f2..269672b9f 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -616,6 +616,9 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) { process_escapes(params.prompt); process_escapes(params.input_prefix); process_escapes(params.input_suffix); + for (auto & antiprompt : params.antiprompt) { + process_escapes(antiprompt); + } } return true;