FROM . TEMPLATE """{{- if .Messages }} {{- range $index, $_ := .Messages }} {{- if eq .Role "system" }}<|begin_of_text|><|start_header_id|>system<|end_header_id|> Cutting Knowledge Date: December 2023 {{- if $.Tools }}{{- end }} {{ .Content }}<|eot_id|> {{- else if eq .Role "user" }}<|start_header_id|>user<|end_header_id|> {{ .Content }}<|eot_id|> {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|> {{ .Content }}<|eot_id|> {{- end }} {{- end }}<|start_header_id|>assistant<|end_header_id|> {{- end }}"""