update chat_template
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -195,7 +195,7 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
-
"chat_template": "{%- if tools %}\n{{- \"\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\" }}\n{%- for tool in tools %}\n {{- \"\n\" }}\n {{- tool | tojson }}\n{%- endfor %}\n{{- '\n</tools>\n\nFor each function call, return a
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
+
"chat_template": "{%- if tools %}\n{{- \"\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\" }}\n{%- for tool in tools %}\n {{- \"\n\" }}\n {{- tool | tojson }}\n{%- endfor %}\n{{- '\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n...(more tool calls as required)|im_end|>\n' }}\n{%- endif %}\n\n{%- for message in messages %}\n {{- '<|im_start|>' + message['role'] + '\n' }}\n {{- message['content'] + eos_token + '\n' }}\n{%- endfor %}\n\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\n' }}\n{%- endif %}\n\n{%- if add_reasoning_prompt %}\n {{- '<|im_start|>reasoning\n' }}\n{%- endif %}",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|