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 @@ -2800,7 +2800,7 @@ static common_chat_params common_chat_params_init_minimax_m2(
28002800 common_chat_params data;
28012801 data.prompt = apply (tmpl, params);
28022802 data.format = COMMON_CHAT_FORMAT_MINIMAX_M2;
2803- if (string_ends_with (data.prompt , " <think>" )) {
2803+ if (string_ends_with (data.prompt , " <think>\n " )) { // Minimax adds a new line at the start of reasoning content
28042804 if (!inputs.enable_thinking ) {
28052805 data.prompt += " </think>" ;
28062806 } 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