mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
fixed grammar not resetting correctly
This commit is contained in:
parent
18f227625b
commit
1dd37933e3
2 changed files with 7 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue