A logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) logprob values indicate greater model confidence in that token choice.

interface Logprob {
    logprob: number;
    token: string;
    top_logprobs?: OpenAIClient.Responses.ResponseTextDoneEvent.Logprob.TopLogprob[];
}

Properties

logprob: number

The log probability of this token.

token: string

A possible text token.

The log probability of the top 20 most likely tokens.