presencePenalty

public abstract GenerationConfig.Builder presencePenalty(Float presencePenalty)

Setter for presencePenalty.

presencePenalty: Optional. 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].