6 3 days ago

A lightweight 350M-parameter AI model built for efficient inference, coding assistance, and tool-driven workflows.

tools
5fcb1683d9ef · 890B
<|startoftext|>{{- if or .System .Tools }}<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- if .Tools }}
{{- if .System }}
{{ end }}List of tools: <|tool_list_start|>[{{ range $i, $tool := .Tools }}{{ if $i }}, {{ end }}{{ $tool }}{{ end }}]<|tool_list_end|>
{{- end }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
<|im_start|>{{ .Role }}
{{- if eq .Role "tool" }}
<|tool_response_start|>{{ .Content }}<|tool_response_end|>
{{- else if eq .Role "assistant" }}
{{- if .Content }}{{ .Content }}{{- else if .ToolCalls }}<|tool_call_start|>{{ range .ToolCalls }}[{{ .Function.Name }}({{ range $k, $v := .Function.Arguments }}{{ if $k }}, {{ end }}{{ $k }}={{ $v }}{{ end }})]{{ end }}<|tool_call_end|>{{ end }}
{{- else }}
{{ .Content }}
{{- end }}<|im_end|>
{{- end }}
{{- if .Messages }}<|im_start|>assistant
{{- end }}