工具 8B
9小时前更新
9小时前更新
9小时前
7a3f87c5d5ff · 9.0GB
模型
架构llama
·
参数8.03B
·
量化Q8_0
9.0GB
模板
{{ if .Messages }} {{- if or .System .Tools }}<|start_header_id|>系统<|end_header_id|> {{- if .System }} {{ .System }} {{- end }} {{- if .Tools }} 您是一个具有工具调用功能的帮助助手。当接收到工具调用响应时,请使用输出格式化回答原始用户问题。 {{- end }} {{- 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": "函数名称", "parameters": "参数名称及其值字典"}。请勿使用变量。 {{ $.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 }} {{- else if eq .Role "tool" }}<|start_header_id|>工具<|end_header_id|> {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>助手<|end_header_id|> {{ end }} {{- end }} {{- end }} {{- else }} {{- if .System }}<|start_header_id|>系统<|end_header_id|> {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>用户<|end_header_id|> {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>助手<|end_header_id|> {{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}
1.7kB
参数
{"num_ctx":16384,"stop":["<|start_header_id|>","<|end_header_id|>","<|eot_id|>"],"temperature":0.3}
130B
README
无README