presencePenalty property

num? presencePenalty
getter/setter pair

Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. See more information about frequency and presence penalties.

Minimum value: -2 Maximum value: 2

Implementation

num? presencePenalty;