From 91108c14f0ca107b16d42cdacc434a19fc7ddc3e Mon Sep 17 00:00:00 2001 From: ochafik Date: Mon, 3 Feb 2025 11:20:48 +0000 Subject: [PATCH] revert minor regex diff --- common/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;