revert limit max n_predict
This commit is contained in:
parent
c15f5a6e1b
commit
400d4e637f
1 changed files with 2 additions and 2 deletions
|
@ -841,12 +841,12 @@ struct server_context {
|
|||
}
|
||||
|
||||
if (slot.n_predict > 0 && slot.params.n_predict > slot.n_predict) {
|
||||
// Might be better to reject the request with a 400 ?
|
||||
LOG_WARNING("Max tokens to predict exceeds server configuration", {
|
||||
{"params.n_predict", slot.params.n_predict},
|
||||
{"slot.n_predict", slot.n_predict},
|
||||
});
|
||||
error_message = "Max tokens to predict exceeds server configuration";
|
||||
return false;
|
||||
slot.params.n_predict = slot.n_predict;
|
||||
}
|
||||
|
||||
// infill
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue