diff --git a/unsloth/chat_templates.py b/unsloth/chat_templates.py index cfb3ece479..e7849092cb 100644 --- a/unsloth/chat_templates.py +++ b/unsloth/chat_templates.py @@ -1029,7 +1029,7 @@ qwen3_template = \ {{- "\n" }} {{- tool | tojson }} {%- endfor %} - {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\\"name\\": , \\"arguments\\": }\n<|im_end|>\n" }} {%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}