2 3 days ago

A simple upgrade in reasoning from KiwiMate-Mini-1.0

vision
770bc9f11c44 ยท 399B
{{- if .System -}}
system
{{ .System }}
{{- end -}}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}
user
{{ .Content }}
{{- else if eq .Role "assistant" }}
assistant
{{ if .Content }}{{ .Content }}{{ if not $last }}
{{- else -}}{{- end -}}
{{- end -}}
{{- end -}}
{{- if and (ne .Role "assistant") $last }}
assistant
{{ end -}}
{{- end }}