CompletionsLogProbabilityModel interface

Representation of a log probabilities model for a completions generation.

Properties

textOffset

The text offsets associated with tokens in this completions data.

tokenLogprobs

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

tokens

The textual forms of tokens evaluated in this probability model.

topLogprobs

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

Property Details

textOffset

The text offsets associated with tokens in this completions data.

textOffset: number[]

Property Value

number[]

tokenLogprobs

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

tokenLogprobs: (null | number)[]

Property Value

(null | number)[]

tokens

The textual forms of tokens evaluated in this probability model.

tokens: string[]

Property Value

string[]

topLogprobs

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

topLogprobs: Record<string, null | number>[]

Property Value

Record<string, null | number>[]