]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Fix instruct mode broken by PR #354 (#409)
authortjohnman <redacted>
Thu, 23 Mar 2023 00:30:23 +0000 (01:30 +0100)
committerGitHub <redacted>
Thu, 23 Mar 2023 00:30:23 +0000 (01:30 +0100)
Co-authored-by: Johnman <redacted>
main.cpp

index 4569ef2a11fbbdd1139a984b1fd863b07dee904f..431c94b52ebc5d8f024cf452eb87140a178550c7 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -300,7 +300,7 @@ int main(int argc, char ** argv) {
 #endif
                " - Press Return to return control to LLaMa.\n"
                " - If you want to submit another line, end your input in '\\'.\n\n");
-        is_interacting = params.interactive_start;
+        is_interacting = params.interactive_start || params.instruct;
     }
 
     int input_consumed = 0;