server : fix n_keep always showing as 0 in response (#6211)

This commit is contained in:
Jan Boon 2024-03-22 19:12:05 +08:00 committed by GitHub
parent 68e210b354
commit 6b8bb3a31d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1247,7 +1247,7 @@ struct server_context {
{"penalize_nl", slot.sparams.penalize_nl},
{"stop", slot.params.antiprompt},
{"n_predict", slot.params.n_predict}, // TODO: fix duplicate key n_predict
{"n_keep", params.n_keep},
{"n_keep", slot.params.n_keep},
{"ignore_eos", ignore_eos},
{"stream", slot.params.stream},
{"logit_bias", slot.sparams.logit_bias},