server: fix type promotion typo causing crashes w/ --jinja w/o tools (#11880)
This commit is contained in:
parent
fc1b0d0936
commit
f355229692
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
data.grammar = json_schema_to_grammar(inputs.json_schema);
|
||||||
} else {
|
} else {
|
||||||
data.grammar = inputs.grammar.empty();
|
data.grammar = inputs.grammar;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue