File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1216,7 +1216,7 @@ static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_
12161216static void common_chat_parse_deepseek_r1 (common_chat_msg_parser & builder) {
12171217 builder.try_parse_reasoning (" <think>" , " </think>" );
12181218
1219- static const common_regex tool_calls_begin (" [ \\ s \\ r \\ n]* (?:<|tool▁calls▁begin|>|<|tool_calls_begin|>|<|tool calls begin|>|<|tool\\\\ _calls\\\\ _begin|>|<|tool▁calls|>)" );
1219+ static const common_regex tool_calls_begin (" (?:<|tool▁calls▁begin|>|<|tool_calls_begin|>|<|tool calls begin|>|<|tool\\\\ _calls\\\\ _begin|>|<|tool▁calls|>)" );
12201220 static const common_regex tool_calls_end (" <|tool▁calls▁end|>" );
12211221 static const common_regex function_regex (" (?:<|tool▁call▁begin|>)?function<|tool▁sep|>([^\n ]+)\n ```json\n " );
12221222 static const common_regex close_regex (" ```[\\ s\\ r\\ n]*<|tool▁call▁end|>" );
You can’t perform that action at this time.
0 commit comments