Share via


AzureAIInferencePromptExecutionSettings.FrequencyPenalty Property

Definition

A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated text. Positive values will make tokens less likely to appear as their frequency increases and decrease the likelihood of the model repeating the same statements verbatim. Supported range is [-2, 2].

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")]
public float? FrequencyPenalty { get; set; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
[<System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")>]
member this.FrequencyPenalty : Nullable<single> with get, set
Public Property FrequencyPenalty As Nullable(Of Single)

Property Value

Attributes

Applies to