only print manual newline with reverse prompt
fix formatting of reverse prompts so they don't end up at the end of the current line while not introducing unnecessary new lines otherwise
This commit is contained in:
parent
466073896b
commit
d9284a580c
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
main.cpp
|
@ -1089,7 +1089,9 @@ int main(int argc, char ** argv) {
|
||||||
is_interacting = true;
|
is_interacting = true;
|
||||||
embd.back() = NEWLINE_TOKEN_ID;
|
embd.back() = NEWLINE_TOKEN_ID;
|
||||||
last_n_tokens.back() = NEWLINE_TOKEN_ID;
|
last_n_tokens.back() = NEWLINE_TOKEN_ID;
|
||||||
fprintf(stderr, "\n");
|
if (params.antiprompt.size() != 0) {
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, " [end of text]\n");
|
fprintf(stderr, " [end of text]\n");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue