Liu Song’s Projects


~/Projects/llama.cpp

git clone https://code.lsong.org/llama.cpp

Commit

Commit
da5303c1ea68aa19db829c634f1e10d08d409680
Author
cocktailpeanut <121128867+[email protected]>
Date
2023-03-19 17:44:20 -0400 -0400
Diffstat
 main.cpp | 2 +-

bugfix: default should not be interactive (#304)


diff --git a/main.cpp b/main.cpp
index c7186e0dff273d4c0696c9442f200ab7be07bc5f..c005d17ccd31295b079a56ddde5e32818c66d366 100644
--- a/main.cpp
+++ b/main.cpp
@@ -867,7 +867,7 @@         antipromptv_inp.push_back(::llama_tokenize(vocab, antiprompt, false));
     }
 
     // enable interactive mode if reverse prompt is specified
-    if (!antipromptv_inp.size()) {
+    if (antipromptv_inp.size() != 0) {
         params.interactive = true;
     }