GenerationConfigPresencePenalty Property
Optional. Presence penalty applied to the next token's logprobs if the token has
already been seen in the response.
This penalty is binary on/off and not dependant on the number of times the token
is used (after the first). Use
FrequencyPenalty for a penalty
that increases with each use.
A positive penalty will discourage the use of tokens that have already been used
in the response, increasing the vocabulary.
A negative penalty will encourage the use of tokens that have already been used
in the response, decreasing the vocabulary.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public double? PresencePenalty { get; set; }
Property Value
NullableDouble