1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Per-token log probabilities for the OpenAI `logprobs` reply fields.
/// One generated token's log probability and, when the request asked for them, its most likely
/// alternatives. `text`/`bytes` are filled in by the backend that owns the tokenizer; the decode
/// loop only knows the id and the probabilities.
/// One alternative in [`TokenLogprob::top`].