summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorMatvey Soloviev <blackhole89@gmail.com>2023-03-12 22:13:28 +0100
committerGitHub <noreply@github.com>2023-03-12 23:13:28 +0200
commit96ea727f4780620b60c1897b538654931411a3fd (patch)
treea50096786c9d30db728b7881225a8ff7abb53dcf /utils.h
parent966195483549e201cff062096a848d9e9833a1a6 (diff)
Add interactive mode (#61)
* Initial work on interactive mode. * Improve interactive mode. Make rev. prompt optional. * Update README to explain interactive mode. * Fix OS X build
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 5b3d7364..4f98011c 100644
--- a/utils.h
+++ b/utils.h
@@ -28,6 +28,12 @@ struct gpt_params {
std::string model = "models/lamma-7B/ggml-model.bin"; // model path
std::string prompt;
+
+ bool use_color = false; // use color to distinguish generations and inputs
+
+ bool interactive = false; // interactive mode
+ bool interactive_start = false; // reverse prompt immediately
+ std::string antiprompt = ""; // string upon seeing which more user input is prompted
};
bool gpt_params_parse(int argc, char ** argv, gpt_params & params);