Skip to content

Commit 981886f

Browse files
committed
gpt-oss : fix grammar trigger from causing empty stack
1 parent 2c13a0e commit 981886f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ static common_chat_params common_chat_params_init_gpt_oss(const common_chat_temp
13351335

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

13411341
data.preserved_tokens = {

0 commit comments

Comments
 (0)