33 5 days ago

Tiny 152M LLM with chat, step-by-step thinking, tools/web and honest code answers runs on almost anything.

tools thinking
7206d48973b0 · 577B
{{- if .System }}{{ .System }}
{{ end }}
{{- if .Tools }}You can call these tools when useful:
{{ range .Tools }}- {{ .Function.Name }}: {{ .Function.Description }}
{{ end }}
{{ end }}
{{- range .Messages }}
{{- if eq .Role "user" }}<|user|>
{{ .Content }}
<|assistant|>
{{ else if eq .Role "assistant" }}
{{- if .Thinking }}<think>{{ .Thinking }}</think>
{{ end }}{{ .Content }}
{{- range .ToolCalls }}<tool_call>{{ .Function.Name }} {{ .Function.Arguments }}</tool_call>
{{ end }}
{{ else if eq .Role "tool" }}<tool_result>
{{ .Content }}
</tool_result>
{{ end }}
{{- end }}