From 96ea727f4780620b60c1897b538654931411a3fd Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Sun, 12 Mar 2023 22:13:28 +0100 Subject: 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 --- utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils.h') 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); -- cgit v1.2.3