Update llama.cpp
Co-authored-by: Samuel Tallet <36248671+SamuelTallet@users.noreply.github.com>
This commit is contained in:
parent
24874e7323
commit
70eb88c842
1 changed files with 1 additions and 1 deletions
|
@ -17021,7 +17021,7 @@ static int32_t llama_chat_apply_template_internal(
|
||||||
bool first_message = true; // add BOS at the beginning
|
bool first_message = true; // add BOS at the beginning
|
||||||
for (auto message : chat) {
|
for (auto message : chat) {
|
||||||
std::string role(message->role);
|
std::string role(message->role);
|
||||||
if(first_message){
|
if (first_message) {
|
||||||
ss << "<|begin_of_text|>";
|
ss << "<|begin_of_text|>";
|
||||||
first_message = false;
|
first_message = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue