Skip to content

Commit a9ad8f6

Browse files
committed
gpt-oss: tweak the grammar trigger again
1 parent 49e76df commit a9ad8f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/chat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,11 +1355,11 @@ static common_chat_params common_chat_params_init_gpt_oss(const common_chat_temp
13551355
});
13561356

13571357
auto tool_call = builder.add_rule("tool_call", string_join(tool_rules, " | "));
1358-
builder.add_rule("root", "\"<|channel|>commentary\" space \"to=functions.\" " + tool_call);
1358+
builder.add_rule("root", "\"<|channel|>commentary to=functions.\" " + tool_call);
13591359

13601360
data.grammar_triggers.push_back({
13611361
COMMON_GRAMMAR_TRIGGER_TYPE_PATTERN,
1362-
"<\\|channel\\|>commentary\\s+to=functions"
1362+
"<\\|channel\\|>commentary to"
13631363
});
13641364

13651365
data.preserved_tokens = {

0 commit comments

Comments
 (0)