We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 607758a commit 4f5683aCopy full SHA for 4f5683a
examples/server/server.cpp
@@ -549,10 +549,7 @@ struct llama_server_context
549
llama_grammar_accept_token(ctx, grammar, result.tok);
550
}
551
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)
+ for (size_t i = 0; i < std::min(candidates_p.size, (size_t)n_probs);; ++i)
556
{
557
result.probs.push_back({candidates_p.data[i].id, candidates_p.data[i].p});
558
0 commit comments