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 4f16cea commit 633455eCopy full SHA for 633455e
common/parsers/harmony.cpp
@@ -63,7 +63,7 @@ void harmony_msg_parser::commentary() {
63
64
void harmony_msg_parser::user_function() {
65
static const common_regex tool_call_regex(
66
- "functions\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s*(<\\|constrain\\|>([a-z]+))?<\\|message\\|>"
+ "functions\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s*(<\\|constrain\\|>)?([a-z]+)<\\|message\\|>"
67
);
68
if (auto res = builder.try_consume_regex(tool_call_regex)) {
69
auto name = builder.str(res->groups[1]);
0 commit comments