最新
4.7GB
工具 8B
29 拉取 更新于 12 天前
更新于 12 天前
12 天前
d610f2236b1b · 4.7GB
模型
架构llama
·
参数8.03B
·
量化Q4_0
4.7GB
参数
{"stop":["<|start_header_id|>","<|end_header_id|>","<|eot_id|>"]}
96B
模板
{{- if or .System .Tools }}<|start_header_id|>系统<|end_header_id|> {{- if .System }} {{ .System }} {{- end }} {{- if .Tools }} 您是一个具有工具调用功能的实用助手。当您收到工具调用的响应时,请使用输出格式化回答原始问题。 {{- end }} <|eot_id|> {{- range $i, $_ := .Messages }} {{- $last := eq (len (slice $.Messages $i)) 1 }} {{- if eq .Role "user" }}<|start_header_id|>用户<|end_header_id|> {{- if and $.Tools $last }} 给定以下函数,以最好的回答问题的形式响应带有正确参数的函数调用JSON。请使用此格式:{"name": "function name", "parameters": "argument name and its value的字典"}。请不要使用变量。 {{ $.Tools }} {{- end }} {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>助手<|end_header_id|>{{ end }} {{- else if eq .Role "assistant" }}<|start_header_id|>助手<|end_header_id|> {{- if .ToolCalls }} {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }} {{- else }} {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }} {{- end }} {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|> {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>助手<|end_header_id|>{{ end }} {{- end }} {{- end }}
1.4kB
说明文档
无说明文档