Share via


CompletionsOptions.PresencePenalty Property

Definition

Gets or sets a value that influences the probability of generated tokens appearing based on their existing presence in generated text. Has a valid range of -2.0 to 2.0.

public float? PresencePenalty { get; set; }
member this.PresencePenalty : Nullable<single> with get, set
Public Property PresencePenalty As Nullable(Of Single)

Property Value

Remarks

Positive values will make tokens less likely to appear when they already exist and increase the model's likelihood to output new topics.

Applies to