CompletionsLogProbabilityModel Class

Definition

Representation of a log probabilities model for a completions generation.

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

Properties

TextOffsets

The text offsets associated with tokens in this completions data.

TokenLogProbabilities

A collection of log probability values for the tokens in this completions data.

Tokens

The textual forms of tokens evaluated in this probability model.

TopLogProbabilities

A mapping of tokens to maximum log probability values in this completions data.

Explicit Interface Implementations

IJsonModel<CompletionsLogProbabilityModel>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CompletionsLogProbabilityModel>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CompletionsLogProbabilityModel>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CompletionsLogProbabilityModel>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CompletionsLogProbabilityModel>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to