llama.cpp: fixed wording in comment for logprobs

d14f2f3c77297530216a2e00bed9058cd035ba54

Isaac McFadyen <isaac@imcf.me>

Signed
1 files changed, +1 -1Ignore whitespace
public/scripts/textgen-settings.js+1 -1
@@ -1046,7 +1046,7 @@ export function parseTextgenLogprobs(token, logprobs) {
10461046 // 3 cases:
10471047 // 1. Before commit 6c5bc06, "probs" key with "tok_str"/"prob", and probs are [0, 1] so use them directly.
10481048 // 2. After commit 6c5bc06 but before commit 89d604f broke logprobs (they all return the first token's logprobs)
10491049 // We don't know the clientllama.cpp version so we can't do much about this.
10501050 // 3. After commit 89d604f uses OpenAI-compatible format with "completion_probabilities" and "token"/"logprob" keys.
10511051 // Note that it is also the *actual* logprob (negative number), so we need to convert to [0, 1].
10521052 if (logprobs?.[0]?.probs) {