Partager via


AzureAIInferencePromptExecutionSettings.PresencePenalty Property

Definition

A value that influences the probability of generated tokens appearing based on their existing presence in generated text. Positive values will make tokens less likely to appear when they already exist and increase the model's likelihood to output new topics. Supported range is [-2, 2].

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("presence_penalty")]
public float? 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<single> with get, set
Public Property PresencePenalty As Nullable(Of Single)

Property Value

Attributes

Applies to