612 2 months ago

20b MXFP4 GPT-oss model stripped of the built in tools

tools thinking
5ff896ebfdf9 · 1.4kB
<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-06
# Valid channels: analysis, commentary, final. Channel must be included for every message.
{{- if .Tools }}
Calls to these tools must go to the commentary channel: 'functions'.
{{- end }}<|end|>
{{- if .Tools }}
<|start|>developer<|message|>
# Tools
# The following tools are available to be called in the 'functions' namespace.
{{ .Tools | json }}
<|end|>
{{- end }}
{{- range .Messages }}
{{- if eq .Role "user" }}
<|start|>user<|message|>{{ .Content }}<|end|>
{{- end }}
{{- if eq .Role "assistant" }}
{{- if .ToolCalls }}
{{- if .Thinking }}
<|start|>assistant<|channel|>analysis<|message|>{{ .Thinking }}<|end|>
{{- end }}
{{- range .ToolCalls }}
<|start|>assistant to=functions.{{ .Function.Name }}<|channel|>commentary json<|message|>{{ .Function.Arguments }}<|call|>
{{- end }}
{{- else }}
{{- if .Thinking }}
<|start|>assistant<|channel|>analysis<|message|>{{ .Thinking }}<|end|>
{{- end }}
<|start|>assistant<|channel|>final<|message|>{{ .Content }}<|end|>
{{- end }}
{{- end }}
{{- if eq .Role "tool" }}
<|start|>functions.{{ .ToolName }} to=assistant<|channel|>commentary<|message|>{{ .Content }}<|end|>
{{- end }}
<|start|>assistant
{{- end -}}