Вызов инструментов в Ollama

#5
by tripolskypetr - opened

Шаблон в Ollama не содержит вызова инструментов.

image.png

Не могли бы вы включить поддержку инструментов, добавив что-то подобное...

{{- if .Tools }}
Here is the list of tools that you have available to you.
You can ONLY use the tools listed here. When a tool is not listed below, it is NOT available and you should NEVER attempt to use it.
You can use these tools to help answer the user's question:
{{- range .Tools }}
{{ . }}
{{- end }}
When you need to use a tool, format your response as JSON as follows:
<tool>
{"name": "tool_name", "parameters": {"param1": "value1", "param2": "value2"}}
</tool>
{{- end }}<end_of_turn>
<start_of_turn>model
I understand.
<end_of_turn>

Sign up or log in to comment