aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Bosch <pnigelb@gmail.com>2023-07-09 03:56:18 -0500
committerGitHub <noreply@github.com>2023-07-09 11:56:18 +0300
commitdb4047ad5cd8eae04db3b2efe0245e69a376601a (patch)
tree23f809aa3d0bab17c79c5e668ee76771d3a31918
parent18780e0a5e17348236230bbe891901b9b5718709 (diff)
main : escape prompt prefix/suffix (#2151)
-rw-r--r--examples/common.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/common.cpp b/examples/common.cpp
index 3278a06..93159c6 100644
--- a/examples/common.cpp
+++ b/examples/common.cpp
@@ -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;