Skip to content

Commit f355229

Browse files
authored
server: fix type promotion typo causing crashes w/ --jinja w/o tools (ggml-org#11880)
1 parent fc1b0d0 commit f355229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ static common_chat_params common_chat_params_init_without_tools(const common_cha
968968
}
969969
data.grammar = json_schema_to_grammar(inputs.json_schema);
970970
} else {
971-
data.grammar = inputs.grammar.empty();
971+
data.grammar = inputs.grammar;
972972
}
973973
return data;
974974
}

0 commit comments

Comments
 (0)