Skip to content

Commit

Permalink
main : escape prompt prefix/suffix (ggerganov#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnb authored Jul 9, 2023
1 parent 18780e0 commit db4047a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {

if (escape_prompt) {
process_escapes(params.prompt);
process_escapes(params.input_prefix);
process_escapes(params.input_suffix);
}

return true;
Expand Down

0 comments on commit db4047a

Please sign in to comment.