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 178dced commit 3b57133Copy full SHA for 3b57133
common/chat.cpp
@@ -1417,7 +1417,7 @@ static void common_chat_parse_gpt_oss(common_chat_msg_parser & builder) {
1417
static const common_regex start_regex("<\\|start\\|>assistant");
1418
static const common_regex end_regex("<\\|end\\|>");
1419
static const common_regex to_regex(" to=");
1420
- static const common_regex function_regex("functions\\.([a-zA-Z_][a-zA-Z0-9_]*)");
+ static const common_regex function_regex("functions\\.([^<\\s]+)");
1421
static const common_regex user_tool_call_regex("(?: <\\|constrain\\|>([a-zA-Z]+))?<\\|message\\|>");
1422
static const common_regex builtin_tool_call_regex("(?:browser|python)[\\s\\S]*<\\|message\\|>");
1423
0 commit comments