diff --git a/common/chat.cpp b/common/chat.cpp index 90479d0b3..4a113c0ca 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -366,7 +366,7 @@ static common_chat_params common_chat_params_init_command_r7b(const common_chat_ } static common_chat_msg common_chat_parse_command_r7b(const std::string & input) { static std::regex response_regex("<\\|START_RESPONSE\\|>([\\s\\S\\n\\r]*?)<\\|END_RESPONSE\\|>"); - static std::regex thought_action_regex("<\\|START_THINKING\\|>([\\s\\S\\n\\r]*)<\\|END_THINKING\\|><\\|START_ACTION\\|>([\\s\\S\\n\\r]*?)<\\|END_ACTION\\|>"); + static std::regex thought_action_regex("<\\|START_THINKING\\|>([\\s\\S\\n\\r]*?)<\\|END_THINKING\\|><\\|START_ACTION\\|>([\\s\\S\\n\\r]*?)<\\|END_ACTION\\|>"); std::smatch match; common_chat_msg result;