Skip to content

Commit 91108c1

Browse files
author
ochafik
committed
revert minor regex diff
1 parent 7e44fbe commit 91108c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static common_chat_params common_chat_params_init_command_r7b(const common_chat_
366366
}
367367
static common_chat_msg common_chat_parse_command_r7b(const std::string & input) {
368368
static std::regex response_regex("<\\|START_RESPONSE\\|>([\\s\\S\\n\\r]*?)<\\|END_RESPONSE\\|>");
369-
static std::regex thought_action_regex("<\\|START_THINKING\\|>([\\s\\S\\n\\r]*)<\\|END_THINKING\\|><\\|START_ACTION\\|>([\\s\\S\\n\\r]*?)<\\|END_ACTION\\|>");
369+
static std::regex thought_action_regex("<\\|START_THINKING\\|>([\\s\\S\\n\\r]*?)<\\|END_THINKING\\|><\\|START_ACTION\\|>([\\s\\S\\n\\r]*?)<\\|END_ACTION\\|>");
370370
std::smatch match;
371371

372372
common_chat_msg result;

0 commit comments

Comments
 (0)