summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authortjohnman <tjohnman@users.noreply.github.com>2023-03-19 20:33:06 +0100
committerGitHub <noreply@github.com>2023-03-19 21:33:06 +0200
commit24568371ae0d7caf85164abe4753f36a7dba0288 (patch)
tree2b424f5217789557618e75f716cf64e57ae7543b /utils.h
parent7392f1cd2cef4dfed41f4db7c4160ab86c0dfcd9 (diff)
Support for multiple reverse prompts. (#299)
Co-authored-by: Johnman <> Co-authored-by: Johnman <tjohnman@github>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index 60ef12bb..49658f7d 100644
--- a/utils.h
+++ b/utils.h
@@ -30,15 +30,15 @@ struct gpt_params {
std::string model = "models/lamma-7B/ggml-model.bin"; // model path
std::string prompt = "";
- std::string antiprompt = ""; // string upon seeing which more user input is prompted
bool random_prompt = false;
bool use_color = false; // use color to distinguish generations and inputs
bool interactive = false; // interactive mode
+ bool interactive_start = false; // reverse prompt immediately
+ std::vector<std::string> antiprompt; // string upon seeing which more user input is prompted
bool instruct = false; // instruction mode (used for Alpaca models)
-
bool ignore_eos = false; // do not stop generating after eos
};