Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Logprobs

Includes the logarithmic probabilities for the most likely output tokens and the chosen tokens.

For example, if the log probability is 5, the API returns a list of the 5 most likely tokens. The API returns the log probability of the sampled token, so there might be up to logprobs+1 elements in the response.

Properties

Optional textOffset

textOffset: Array<number>

The text offset.

Optional tokenLogprobs

tokenLogprobs: Array<number>

The logarithmic probabilites of the output token.

Optional tokens

tokens: Array<string>

The list of output tokens.

Optional topLogprobs

topLogprobs: Array<object>

The logarithmic probabilities of each of the top k tokens.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Logprobs): object

getJsonObj