Skip to content

Commit

Permalink
common : process escape sequences in reverse prompts (ggerganov#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
staviq authored and yusiwen committed Oct 7, 2023
1 parent d069a75 commit 1e670b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e670b4

Please sign in to comment.