Share via


OpenAIPromptExecutionSettings.PresencePenalty Property

Definition

Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("presence_penalty")]
public double? PresencePenalty { get; set; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
[<System.Text.Json.Serialization.JsonPropertyName("presence_penalty")>]
member this.PresencePenalty : Nullable<double> with get, set
Public Property PresencePenalty As Nullable(Of Double)

Property Value

Attributes

Applies to