mirror of
https://github.com/ollama/ollama.git
synced 2025-12-07 03:42:24 +01:00
logprob: add bytes to logprobs (#13068)
This commit is contained in:
@@ -366,6 +366,9 @@ type TokenLogprob struct {
|
||||
|
||||
// Logprob is the log probability of this token.
|
||||
Logprob float64 `json:"logprob"`
|
||||
|
||||
// Bytes contains the raw byte representation of the token
|
||||
Bytes []int `json:"bytes,omitempty"`
|
||||
}
|
||||
|
||||
// Logprob contains log probability information for a generated token.
|
||||
|
||||
Reference in New Issue
Block a user