latest
21GB
Vision
70 Pulls Updated 3 days ago
e3a09a120549 · 264B
{{- range $i, $_ := .Messages }}<|start_header_id|>{{ .Role }}<|end_header_id|>
{{ .Content }}
{{- if eq (len (slice $.Messages $i)) 1 }}
{{- if eq .Role "user" }}<|start_header_id|>assistant<|end_header_id|>
{{ end }}
{{- end }}
{{- else }}<|eot_id|>
{{- end }}