140 1 month ago

tools thinking
70a2c9b8b82d · 345B
{{- if .System }}<start_of_turn>system
{{ .System }}<end_of_turn>
{{ end -}}
{{- range .Messages }}<start_of_turn>{{- if eq .Role "assistant" -}}model{{- else -}}{{ .Role }}{{- end -}}
{{ .Content }}<end_of_turn>
{{ end -}}
{{- if .Prompt }}<start_of_turn>user
{{ .Prompt }}<end_of_turn>
{{ end -}}
<start_of_turn>model
{{ .Response }}