Skip to content

Commit 6b8bb3a

Browse files
authored
server : fix n_keep always showing as 0 in response (#6211)
1 parent 68e210b commit 6b8bb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ struct server_context {
12471247
{"penalize_nl", slot.sparams.penalize_nl},
12481248
{"stop", slot.params.antiprompt},
12491249
{"n_predict", slot.params.n_predict}, // TODO: fix duplicate key n_predict
1250-
{"n_keep", params.n_keep},
1250+
{"n_keep", slot.params.n_keep},
12511251
{"ignore_eos", ignore_eos},
12521252
{"stream", slot.params.stream},
12531253
{"logit_bias", slot.sparams.logit_bias},

0 commit comments

Comments
 (0)