fix warning
This commit is contained in:
parent
08fefd1d7c
commit
1afc53a338
1 changed files with 2 additions and 0 deletions
|
@ -995,6 +995,8 @@ std::string json_schema_to_grammar(const json & schema, bool force_gbnf) {
|
|||
if (!force_gbnf) {
|
||||
return "%llguidance {}\nstart: %json " + schema.dump();
|
||||
}
|
||||
#else
|
||||
(void)force_gbnf;
|
||||
#endif // LLAMA_USE_LLGUIDANCE
|
||||
return build_grammar([&](const llama_grammar_builder & callbacks) {
|
||||
auto copy = schema;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue