21 references to Newline
Microsoft.ML.GenAI.LLaMA (21)
Llama3_1ChatTemplateBuilder.cs (21)
44
_ when message.GetRole() == Role.System => $"<|start_header_id|>system<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
45
_ when message.GetRole() == Role.User => $"<|start_header_id|>user<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
46
_ when message.GetRole() == Role.Assistant => $"<|start_header_id|>assistant<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
51
sb.Append($"<|start_header_id|>assistant<|end_header_id|>{
Newline
}");
76
_ when message.Role == AuthorRole.System => $"<|start_header_id|>system<|end_header_id|>{
Newline
}{text}<|eot_id|>{
Newline
}",
77
_ when message.Role == AuthorRole.User => $"<|start_header_id|>user<|end_header_id|>{
Newline
}{text}<|eot_id|>{
Newline
}",
78
_ when message.Role == AuthorRole.Assistant => $"<|start_header_id|>assistant<|end_header_id|>{
Newline
}{text}<|eot_id|>{
Newline
}",
86
sb.Append($"<|start_header_id|>assistant<|end_header_id|>{
Newline
}");
112
_ when message.Role == ChatRole.System => $"<|start_header_id|>system<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
113
_ when message.Role == ChatRole.User => $"<|start_header_id|>user<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
114
_ when message.Role == ChatRole.Assistant => $"<|start_header_id|>assistant<|end_header_id|>{
Newline
}{content.Trim()}<|eot_id|>{
Newline
}",
119
sb.Append($"<|start_header_id|>assistant<|end_header_id|>{
Newline
}");