File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -552,9 +552,15 @@ static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_
552552 " <think>" ,
553553 " </think>" ,
554554 " <|tool▁sep|>" ,
555+ " <|tool▁calls▁end|" ,
556+ " <|tool▁call▁begin|>" ,
555557 " <|tool▁call▁end|>" ,
556558 };
557- builder.add_rule (" root" , " \" <|tool▁calls▁begin|>\" (" + string_join (tool_rules, " | " ) + " )" + (inputs.parallel_tool_calls ? " *" : " " ) + " space" );
559+ builder.add_rule (" root" ,
560+ " \" <|tool▁calls▁begin|>\" "
561+ " (" +string_join (tool_rules, " | " ) + " )" + (inputs.parallel_tool_calls ? " *" : " " ) +
562+ " \" <|tool▁calls▁end|>\" "
563+ " space" );
558564 }, grammar_options);
559565 /*
560566 Note: we do not feed the thoughts back to the template for a few reasons:
You can’t perform that action at this time.
0 commit comments