Documentation

Presence Penalty - Open Dev Kit Documentation

Open Dev Kit Documentation :: Open AI :: AI Completion Options :: Presence Penalty

OpenAI.AICompletionOptions.PresencePenalty
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.

Type

Float

Lua Usage

-- Get
local float = aICompletionOptions.PresencePenalty

-- Set
aICompletionOptions.PresencePenalty = float

If you think anything is missing, please feel free to: submit documentation feedback on this page