Token logprobs are natural logarithmic probability values returned in the model's API response metadata that quantify its generation confidence for each emitted token alongside the distribution of top alternative candidates. By calculating the mathematical exponent of these log values (math.exp(log_probability) * 100), systems can determine the exact percentage confidence for every word in a response and detect latent associations where an alternative candidate exceeds a specific probability threshold.
Referenced by