11 3 months ago

ac29065936c7 · 420B
{{- if .Messages }}
{{- range .Messages }}<|begin_of_text|><|start_header_id|>{{.Role}}<|end_header_id|>
{{ .Content }}<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>
{{- end }}
{{- else }}
{{- if .Prompt }}<|begin_of_text|><|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}
{{- if .Response }}<|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>
{{- end }}
{{ end }}