Skip to content

Commit da67163

Browse files
committed
gpt-oss: tweak the grammar trigger again
1 parent 981886f commit da67163

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
@@ -1331,11 +1331,11 @@ static common_chat_params common_chat_params_init_gpt_oss(const common_chat_temp
13311331
});
13321332

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

13361336
data.grammar_triggers.push_back({
13371337
COMMON_GRAMMAR_TRIGGER_TYPE_PATTERN,
1338-
"<\\|channel\\|>commentary\\s+to=functions"
1338+
"<\\|channel\\|>commentary to"
13391339
});
13401340

13411341
data.preserved_tokens = {

0 commit comments

Comments
 (0)