llama.cpp chat_template.jinja
#7
by c41n3 - opened
- chat_template.jinja +7 -7
chat_template.jinja
CHANGED
|
@@ -92,16 +92,16 @@
|
|
| 92 |
{%- endif %}
|
| 93 |
{{- '<tool_call>' + tc.name }}
|
| 94 |
{% set _args = tc.arguments %}
|
|
|
|
| 95 |
{%- for k, v in _args.items() %}
|
| 96 |
-
{{- '
|
| 97 |
-
{
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
{{- v | tojson(ensure_ascii=False) }}
|
| 102 |
{%- endif %}
|
| 103 |
-
{{- '</arg_value>' }}
|
| 104 |
{%- endfor %}
|
|
|
|
| 105 |
{{- '\n</tool_call>' }}
|
| 106 |
{%- endfor %}
|
| 107 |
{%- endif %}
|
|
|
|
| 92 |
{%- endif %}
|
| 93 |
{{- '<tool_call>' + tc.name }}
|
| 94 |
{% set _args = tc.arguments %}
|
| 95 |
+
{{- '{' }}
|
| 96 |
{%- for k, v in _args.items() %}
|
| 97 |
+
{{- ' "' + k + '": ' }}
|
| 98 |
+
{%- set _v = v | tojson(ensure_ascii=False) %}
|
| 99 |
+
{{- _v }}
|
| 100 |
+
{%- if not loop.last %}
|
| 101 |
+
{{- ',' }}
|
|
|
|
| 102 |
{%- endif %}
|
|
|
|
| 103 |
{%- endfor %}
|
| 104 |
+
{{- '}' }}
|
| 105 |
{{- '\n</tool_call>' }}
|
| 106 |
{%- endfor %}
|
| 107 |
{%- endif %}
|