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 ce3dd8b commit 8e39dfaCopy full SHA for 8e39dfa
main.cpp
@@ -200,13 +200,16 @@ int main(int argc, char ** argv) {
200
}
201
if (is_interacting) {
202
if (params.instruct) {
203
- llama_update_input(ctx, "\n\n### Instruction:\n\n");
204
-
+ llama_update_input(ctx, inp_pfx);
205
printf("\n> ");
206
207
208
// currently being interactive
209
process_interactive_input(ctx, params);
+
210
+ if (params.instruct) {
211
+ llama_update_input(ctx, inp_sfx);
212
+ }
213
input_noecho = true; // do not echo this input again
214
is_interacting = false;
215
0 commit comments