mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 15:29:43 +00:00
* fix reverse prompt and multi line * Code Formatting Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
799fdc1b5d
commit
f647ce040f
1 changed files with 7 additions and 5 deletions
|
@ -551,12 +551,14 @@ int main(int argc, char ** argv) {
|
|||
return 0;
|
||||
}
|
||||
#endif
|
||||
if (line.empty() || line.back() != '\\') {
|
||||
another_line = false;
|
||||
} else {
|
||||
line.pop_back(); // Remove the continue character
|
||||
if (!line.empty()) {
|
||||
if (line.back() == '\\') {
|
||||
line.pop_back(); // Remove the continue character
|
||||
} else {
|
||||
another_line = false;
|
||||
}
|
||||
buffer += line + '\n'; // Append the line to the result
|
||||
}
|
||||
buffer += line + '\n'; // Append the line to the result
|
||||
} while (another_line);
|
||||
|
||||
// done taking input, reset color
|
||||
|
|
Loading…
Reference in a new issue