responseLogprobs property

bool? responseLogprobs
getter/setter pair

If set to true, the log probabilities of the output tokens are returned.

Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model's confidence in its own output and for debugging.

Optional.

Implementation

core.bool? responseLogprobs;