mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
fixed grammar not resetting correctly
This commit is contained in:
@@ -1507,6 +1507,7 @@ static void load_grammar(const std::string & gammarstr)
|
||||
}
|
||||
|
||||
if (!gammarstr.empty()) {
|
||||
parsed_grammar = llama_grammar_parser();
|
||||
parsed_grammar.parse(gammarstr.c_str());
|
||||
// will be empty (default) if there are parse errors
|
||||
if (parsed_grammar.rules.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user