Skip to content

Commit 4453fde

Browse files
committed
fix python builtin
1 parent 7256569 commit 4453fde

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
@@ -1363,7 +1363,7 @@ static void common_chat_parse_gpt_oss(common_chat_msg_parser & builder) {
13631363
"functions\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s?(?:<\\|constrain\\|>([a-zA-Z]+))?<\\|message\\|>"
13641364
);
13651365
static const common_regex browser_tool_call_regex("browser\\.(search|open|find)[\\s\\S]*<\\|message\\|>");
1366-
static const common_regex python_tool_call_regex("python\\s?(?:<|constrain|>code)?<\\|message\\|>");
1366+
static const common_regex python_tool_call_regex("python\\s?(?:code)?<\\|message\\|>");
13671367

13681368
auto consume_until_start = [&]() {
13691369
if (auto res = builder.try_find_regex(start_regex, std::string::npos, false)) {

0 commit comments

Comments
 (0)