mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-27 20:05:20 +00:00
server: fix type promotion typo causing crashes w/ --jinja w/o tools (#11880)
This commit is contained in:
@ -968,7 +968,7 @@ static common_chat_params common_chat_params_init_without_tools(const common_cha
|
||||
}
|
||||
data.grammar = json_schema_to_grammar(inputs.json_schema);
|
||||
} else {
|
||||
data.grammar = inputs.grammar.empty();
|
||||
data.grammar = inputs.grammar;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user