File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1379,13 +1379,9 @@ static void common_chat_parse_gpt_oss(common_chat_msg_parser & builder) {
1379
1379
auto name = builder.str (res->groups [1 ]);
1380
1380
auto args = builder.consume_rest ();
1381
1381
builder.add_tool_call (name, " " , args);
1382
- } else if (auto res = builder.try_consume_regex (browser_tool_call_regex)) {
1383
- auto code = builder.consume_rest ();
1384
- LOG_INF (" builtin tool call to python code: %s" , code.c_str ());
1385
- } else if (auto res = builder.try_consume_regex (python_tool_call_regex)) {
1386
- auto name = builder.str (res->groups [0 ]);
1387
- auto args = builder.consume_rest ();
1388
- LOG_INF (" builtin tool call to browser.%s %s" , name.c_str (), args.c_str ());
1382
+ } else if (builder.try_consume_regex (browser_tool_call_regex) || builder.try_consume_regex (python_tool_call_regex)) {
1383
+ builder.consume_rest ();
1384
+ LOG_ERR (" builtin tool calls not implemented" );
1389
1385
} else {
1390
1386
throw common_chat_msg_parse_exception (" expected function call, got: " + consume_until_start ());
1391
1387
}
You can’t perform that action at this time.
0 commit comments