frob/ hy-mt1.5:latest

37 3 months ago

51d49dffeb8a · 511B
<|hy_begin▁of▁sentence|>
{{- if .System }}{{ .System }}<|hy_place▁holder▁no▁3|>{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" -}}
<|hy_User|>{{ .Content }}
{{- end }}
{{- if eq .Role "assistant" -}}
<|hy_Assistant|>{{ .Content }}<|hy_place▁holder▁no▁2|>
{{- end }}
{{- if and $last (ne .Role "assistant") -}}
<|hy_Assistant|>
{{- else -}}
<|hy_place▁holder▁no▁8|>
{{- end }}
{{- end -}}