Table of Contents

Class Logprob

Namespace
OllamaSharp.Models
Assembly
OllamaSharp.dll

Log probability information for a generated token

public class Logprob
Inheritance
Logprob
Inherited Members

Properties

Bytes

Gets or sets the raw byte representation of the token.

[JsonPropertyName("bytes")]
public int[]? Bytes { get; set; }

Property Value

int[]

LogProbability

Gets or sets the log probability of the token.

[JsonPropertyName("logprob")]
public double? LogProbability { get; set; }

Property Value

double?

Token

Gets or sets the token text.

[JsonPropertyName("token")]
public string? Token { get; set; }

Property Value

string

TopLogprobs

Gets or sets the top alternative log probabilities for this token.

[JsonPropertyName("top_logprobs")]
public IEnumerable<Logprob>? TopLogprobs { get; set; }

Property Value

IEnumerable<Logprob>