presencePenalty property

double? presencePenalty
getter/setter pair

Penalizes tokens that have already appeared in the generated text.

A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0].

Optional.

Implementation

core.double? presencePenalty;