openai.createchatcompletionprops.presencepenalty
Home > @runlightyear/openai > CreateChatCompletionProps > presencePenalty
CreateChatCompletionProps.presencePenalty property
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.
See more information about frequency and presence penalties.
Defaults to 0
Signature:presencePenalty?: number;