Class LogprobsResult

  • All Implemented Interfaces:

    
    public abstract class LogprobsResult
    extends JsonSerializable
                        

    The log probabilities of the tokens generated by the model. This is useful for understanding the model's confidence in its predictions and for debugging. For example, you can use log probabilities to identify when the model is making a less confident prediction or to explore alternative responses that the model considered. A low log probability can also indicate that the model is "hallucinating" or generating factually incorrect information.