An open large reasoning model for real-world solutions by the Alibaba International Digital Commerce Group (AIDC-AI).
7b
156 Pulls Updated 3 weeks ago
68b93dbecf28 · 244B
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
<|im_start|>{{ .Role }}
{{ .Content }}{{ if not $last }}<|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
{{ end }}
{{- end }}