Models
GitHub
Discord
Docs
Cloud
Sign in
Download
Models
Download
GitHub
Discord
Docs
Cloud
Sign in
lucasmg
/
deepseek-r1-8b-0528-qwen3-q4_K_M-tool-true
:latest
915
Downloads
Updated
4 months ago
DeepSeek R1 0528 Qwen3 8B Q4 with tool calling
DeepSeek R1 0528 Qwen3 8B Q4 with tool calling
Cancel
tools
thinking
deepseek-r1-8b-0528-qwen3-q4_K_M-tool-true:latest
...
/
template
d9f3d11bacc7 · 1.3kB
{{- if .System }}{{ .System }}{{ end }}
{{- if .Tools }}
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
</tools>
If calling a function, respond explicitly with function name and arguments within <tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>
{{- 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 }}{{ end }}
{{- if .ToolCalls }}
<tool_call>
{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
{{- end }}</tool_call>
{{- end }}{{- if not $last }}<|end▁of▁sentence|>{{- end }}
{{- else if eq .Role "tool" }}<|User|>
<tool_response>
{{ .Content }}
</tool_response>
{{- end }}
{{- if and $last (ne .Role "assistant") }}<|Assistant|>
{{- if and $.IsThinkSet (not $.Think) -}}
<think>
</think>
{{ end }}
{{- end -}}
{{- end }}