Skip to content

Commit 8f86eb9

Browse files
committed
revert unnecessary change
1 parent 607758a commit 8f86eb9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,7 @@ struct llama_server_context
549549
llama_grammar_accept_token(ctx, grammar, result.tok);
550550
}
551551

552-
size_t prob_size = std::min(candidates_p.size, (size_t)n_probs);
553-
// Pick the first prob
554-
555-
for (size_t i = 0; i < ; ++i)
552+
for (size_t i = 0; i < std::min(candidates_p.size, (size_t)n_probs); ++i)
556553
{
557554
result.probs.push_back({candidates_p.data[i].id, candidates_p.data[i].p});
558555
}

0 commit comments

Comments
 (0)