feat: '--in-prefix STRING' option (#426)

Prefix user inputs with a string
This commit is contained in:
anzz1 2023-03-25 14:03:19 +02:00 committed by GitHub
parent 58e6c9f36f
commit fbd4d38c64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -30,6 +30,7 @@ struct gpt_params {
std::string model = "models/lamma-7B/ggml-model.bin"; // model path
std::string prompt = "";
std::string input_prefix = ""; // string to prefix user inputs with
std::vector<std::string> antiprompt; // string upon seeing which more user input is prompted