GitHub
183.1K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
heredos
/
rwkv7
:lonely-neko
871
Downloads
Updated
6 months ago
an rwkv repo that tries to be less confusing, more up to date and with some QOL features
an rwkv repo that tries to be less confusing, more up to date and with some QOL features
Cancel
tools
thinking
0.1b
0.4b
1.5b
2.9b
7.2b
13.3b
rwkv7:lonely-neko
...
/
template
ad5557b5e0c7 ยท 558B
{{- if .System }}System: {{ .System }}{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1}}
{{- if eq .Role "user" }}
{{- if eq $i 0}}User: {{ .Content }}{{- else }}
User: {{ .Content }}{{- end }}
{{- else if eq .Role "assistant" }}
Assistant: <{{- if and $last .Thinking -}}think>{{ .Thinking }}</think>{{- else }}think>
</think>{{- end }}{{ .Content }}{{- end }}
{{- if and $last (ne .Role "assistant") }}
Assistant:{{- if $.IsThinkSet }} <{{- if not $.Think }}think>
</think>{{- end }}{{- end }}{{- end }}{{- end }}