次の方法で共有


OpenAIPromptExecutionSettings.FrequencyPenalty Property

Definition

Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")]
public double? 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<double> with get, set
Public Property FrequencyPenalty As Nullable(Of Double)

Property Value

Attributes

Applies to