common : process escape sequences in reverse prompts (#3461)

This commit is contained in:
staviq 2023-10-05 18:17:29 +02:00 committed by GitHub
parent e2583cbc29
commit acec9eaaa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;