4,208 3 weeks ago

Polish LLM - Bielik-Minitron-7B-v3.0-Instruct ~ by SpeakLeash a.k.a Spichlerz!

tools
a72b84e26aab ยท 1.2kB
{{ if .Tools }}<|im_start|>system
{{ if .System }}{{ .System }}
{{ end }}You are provided with tool signatures that you can use to assist with the user's query. You do not have to use a tool if you can respond adequately without it. Do not make assumptions about the values to use in tool calls. If the user's message is missing required parameters or if you do not have an appropriate tool to fulfill the request, inform the user or ask for clarification instead of attempting to call any tools.
If you decide to invoke a tool, you MUST use the following JSON format:
`<tool_call>{"name": <tool-name>, "arguments": <args-dict>}</tool_call>`
Below is a list of tools in JSON format that you can invoke:{{ range .Tools }}
{{ json . }}{{ end }}
<|im_end|>
{{ else if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ range $msg := .Messages }}{{ if ne $msg.Role "system" }}<|im_start|>{{ $msg.Role }}
{{ if $msg.ToolCalls }}{{ $msg.Content }}{{ range $msg.ToolCalls }}<tool_call>{"name":"{{ .Function.Name }}","arguments":{{ json .Function.Arguments }}}</tool_call>
{{ end }}{{ else }}{{ $msg.Content }}{{ end }}<|im_end|>
{{ end }}{{ end }}<|im_start|>assistant
{{ if .ToolCalls }}<tool_call>{{ end }}