Skip to content

Commit 49e76df

Browse files
committed
gpt-oss : fix grammar trigger from causing empty stack
1 parent 8b2aac0 commit 49e76df

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
@@ -1359,7 +1359,7 @@ static common_chat_params common_chat_params_init_gpt_oss(const common_chat_temp
13591359

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

13651365
data.preserved_tokens = {

0 commit comments

Comments
 (0)