frequencyPenalty

public abstract GenerationConfig.Builder frequencyPenalty(Float frequencyPenalty)

Setter for frequencyPenalty.

frequencyPenalty: Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0].