We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54aa29 commit 2ab97b6Copy full SHA for 2ab97b6
common/chat.cpp
@@ -1393,7 +1393,7 @@ static void common_chat_parse_gpt_oss(common_chat_msg_parser & builder) {
1393
static const common_regex start_regex("<\\|start\\|>assistant");
1394
static const common_regex end_regex("<\\|end\\|>");
1395
static const common_regex to_regex(" to=");
1396
- static const common_regex function_regex("functions\\.([a-zA-Z_][a-zA-Z0-9_]*)");
+ static const common_regex function_regex("functions\\.([^<\\s]+)");
1397
static const common_regex user_tool_call_regex("(?: <\\|constrain\\|>([a-zA-Z]+))?<\\|message\\|>");
1398
static const common_regex builtin_tool_call_regex("(?:browser|python)[\\s\\S]*<\\|message\\|>");
1399
0 commit comments