Remove unneeded message trimming

Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com>
This commit is contained in:
Tristan Druyen 2024-05-23 14:49:46 +02:00 committed by GitHub
parent a9bbb119f0
commit 85ed87eb14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17632,7 +17632,7 @@ static int32_t llama_chat_apply_template_internal(
// Phi 3
for (auto message : chat) {
std::string role(message->role);
ss << "<|" << role << "|>\n" << trim(message->content) << "<|end|>\n";
ss << "<|" << role << "|>\n" << message->content << "<|end|>\n";
}
if (add_ass) {
ss << "<|assistant|>\n";