You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit 23d4bb7
Author: Piotr Wilkin <[email protected]>
Date: Tue Nov 4 19:07:49 2025 +0100
Add proper handling of optional parameters with test
commit 9481289
Author: Piotr Wilkin <[email protected]>
Date: Sun Nov 2 19:30:35 2025 +0100
Whitespace.
commit 1a351a0
Author: Piotr Wilkin <[email protected]>
Date: Sun Nov 2 17:34:47 2025 +0100
Use Unsloth template, add extra test parameters for ignoring additional whitespace
commit de67255
Author: Piotr Wilkin <[email protected]>
Date: Sat Nov 1 22:33:40 2025 +0100
On the other hand, this is probably safer
commit 4e58382
Author: Piotr Wilkin <[email protected]>
Date: Sat Nov 1 22:32:20 2025 +0100
No newline after <think>
commit e21f87e
Author: Piotr Wilkin <[email protected]>
Date: Sat Nov 1 22:19:48 2025 +0100
Minimax M2 chat template support
{#- Main Template Logic ================================================= -#}
47
+
{#- Extract system message (only first message if it's system) -#}
48
+
{%- setsystem_message = none -%}
49
+
{%- setconversation_messages = messages -%}
50
+
{%- ifmessagesandmessages[0].role == "system" -%}
51
+
{%- setsystem_message = messages[0] -%}
52
+
{%- setconversation_messages = messages[1:] -%}
53
+
{%- endif -%}
54
+
{#- Get the last user message turn, for interleved thinking -#}
55
+
{%- setns = namespace(last_user_index=-1) %}
56
+
{%forminconversation_messages%}
57
+
{%- ifm.role == 'user'%}
58
+
{%setns.last_user_index = loop.index0 -%}
59
+
{%- endif%}
60
+
{%- endfor%}
61
+
{#- Render system message -#}
62
+
{{- ']~!b[' ~ ']~b]system' ~ '\n' }}
63
+
{{- build_system_message(system_message) }}
64
+
{#- Render tools if available -#}
65
+
{%- iftools -%}
66
+
{{- '\n\n' ~ '# Tools' ~ '\n' ~ 'You may call one or more tools to assist with the user query.\nHere are the tools available in JSONSchema format:' ~ '\n' }}
67
+
{{- '\n' ~ '<tools>' ~ '\n' }}
68
+
{{- render_tool_namespace("functions", tools) }}
69
+
{{- '</tools>' ~ '\n\n' }}
70
+
{{- 'When making tool calls, use XML format to invoke tools and pass parameters:' ~ '\n' }}
0 commit comments