Models
Docs
Pricing
Sign in
Download
Models
Download
Docs
Pricing
Sign in
ignarobledo20300
/
cyrah-lfm-rapido
:latest
Updated
yesterday
Cancel
tools
thinking
cyrah-lfm-rapido:latest
...
/
template
1f9fb2118aac · 781B
{{ if .System }}<|startoftext|><|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Tools }}<|im_start|>system
Tools: [{{ range $j, $t := .Tools }}{{ if $j }}, {{ end }}{{ json $t }}{{ end }}]
<|im_end|>
{{ end }}{{ range $i, $_ := .Messages }}{{ $last := eq (len (slice $.Messages $i)) 1 }}{{ if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
{{ if .Thinking }}<think>
{{ .Thinking }}
</think>
{{ end }}{{ if .ToolCalls }}<tool_call>
{{ range .ToolCalls }}{{ json .Function }}
{{ end }}</tool_call>
{{ else }}{{ .Content }}
{{ end }}<|im_end|>
{{ else if eq .Role "tool" }}<|im_start|>tool
{{ .Content }}<|im_end|>
{{ end }}{{ if and $last (ne .Role "assistant") }}<|im_start|>assistant
{{ end }}{{ end }}