Remove unneeded message trimming
Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
parent
a9bbb119f0
commit
85ed87eb14
1 changed files with 1 additions and 1 deletions
|
@ -17632,7 +17632,7 @@ static int32_t llama_chat_apply_template_internal(
|
||||||
// Phi 3
|
// Phi 3
|
||||||
for (auto message : chat) {
|
for (auto message : chat) {
|
||||||
std::string role(message->role);
|
std::string role(message->role);
|
||||||
ss << "<|" << role << "|>\n" << trim(message->content) << "<|end|>\n";
|
ss << "<|" << role << "|>\n" << message->content << "<|end|>\n";
|
||||||
}
|
}
|
||||||
if (add_ass) {
|
if (add_ass) {
|
||||||
ss << "<|assistant|>\n";
|
ss << "<|assistant|>\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue