We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb52ab commit 1c1cf35Copy full SHA for 1c1cf35
main.cpp
@@ -210,13 +210,16 @@ int main(int argc, char ** argv) {
210
}
211
if (is_interacting) {
212
if (params.instruct) {
213
- llama_update_input(ctx, "\n\n### Instruction:\n\n");
214
-
+ llama_update_input(ctx, inp_pfx);
215
printf("\n> ");
216
217
218
// currently being interactive
219
process_interactive_input(ctx, params);
+
220
+ if (params.instruct) {
221
+ llama_update_input(ctx, inp_sfx);
222
+ }
223
input_noecho = true; // do not echo this input again
224
is_interacting = false;
225
0 commit comments