frequencyPenalty property

num? frequencyPenalty
getter/setter pair

Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. See more information about frequency and presence penalties.

Minimum value: -2 Maximum value: 2

Implementation

num? frequencyPenalty;