2 weeks ago

c8c54c2f2bca · 271B
{{ if .System }}<|system|>
{{ .System }}<|end|>
{{ end }}{{ if .Messages }}{{ range $i, $m := .Messages }}{{ if eq .Role "user" }}<|user|>
{{ .Content }}<|end|>
{{ else if eq .Role "assistant" }}<|assistant|>
{{ .Content }}<|end|>
{{ end }}{{ end }}{{ end }}<|assistant|>