FROM . TEMPLATE """{{- range $i, $_ := .Messages }} {{- $last := eq (len (slice $.Messages $i)) 1 }} {{- if eq .Role "assistant" }}<|turn>model <|channel>thought {{ .Content }}{{ if not $last }} {{ end }} {{- else }}<|turn>{{ .Role }} {{ .Content }} {{ if $last }}<|turn>model <|channel>thought {{ end }} {{- end }} {{- end }}"""