ChatTokenLogProbabilityInfo Class

Definition

A representation of the log probability information for a single message content token.

public class ChatTokenLogProbabilityInfo : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.ChatTokenLogProbabilityInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.ChatTokenLogProbabilityInfo>
type ChatTokenLogProbabilityInfo = class
    interface IJsonModel<ChatTokenLogProbabilityInfo>
    interface IPersistableModel<ChatTokenLogProbabilityInfo>
Public Class ChatTokenLogProbabilityInfo
Implements IJsonModel(Of ChatTokenLogProbabilityInfo), IPersistableModel(Of ChatTokenLogProbabilityInfo)
Inheritance
ChatTokenLogProbabilityInfo
Implements

Properties

LogProbability

The log probability of the message content token.

Token

The message content token.

Utf8ByteValues

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

Explicit Interface Implementations

IJsonModel<ChatTokenLogProbabilityInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ChatTokenLogProbabilityInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatTokenLogProbabilityInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatTokenLogProbabilityInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ChatTokenLogProbabilityInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to