found this one on the floor
This commit is contained in:
parent
021bdf237a
commit
fcabe9b8b2
1 changed files with 1 additions and 0 deletions
|
@ -350,6 +350,7 @@ int main(int argc, char ** argv) {
|
|||
last_output += llama_token_to_str(ctx, id);
|
||||
}
|
||||
|
||||
is_antiprompt = false;
|
||||
// Check if each of the reverse prompts appears at the end of the output.
|
||||
for (std::string & antiprompt : params.antiprompt) {
|
||||
if (last_output.find(antiprompt.c_str(), last_output.length() - antiprompt.length(), antiprompt.length()) != std::string::npos) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue