File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2785,7 +2785,7 @@ static common_chat_params common_chat_params_init_minimax_m2(
27852785 common_chat_params data;
27862786 data.prompt = apply (tmpl, params);
27872787 data.format = COMMON_CHAT_FORMAT_MINIMAX_M2;
2788- if (string_ends_with (data.prompt , " <think>" )) {
2788+ if (string_ends_with (data.prompt , " <think>\n " )) { // Minimax adds a new line at the start of reasoning content
27892789 if (!inputs.enable_thinking ) {
27902790 data.prompt += " </think>" ;
27912791 } else {
Original file line number Diff line number Diff line change 149149{% - endfor -%}
150150{#- Generation prompt -#}
151151{% - if add_generation_prompt -%}
152- {{- '] ~b] ai' ~ '\n' ~ '<think>' }}
152+ {{- '] ~b] ai' ~ '\n' ~ '<think>' ~ '\n' }}
153153{% - endif -%}
You can’t perform that action at this time.
0 commit comments