GitHub
187K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
akropora
/
coral1.7-micro
:latest
2
Downloads
Updated
2 months ago
Cancel
coral1.7-micro:latest
...
/
template
803b5adc3448 ยท 218B
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
<|{{ .Role }}|>
{{ .Content }}{{ if not $last }}
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|assistant|>
{{ end }}
{{- end }}