Open Dev Kit Documentation :: Open AI :: AI Completion Options :: Frequency Penalty
OpenAI.AICompletionOptions.FrequencyPenaltyNumber 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.
Type
Lua Usage
-- Get local float = aICompletionOptions.FrequencyPenalty -- Set aICompletionOptions.FrequencyPenalty = float
If you think anything is missing, please feel free to: submit documentation feedback on this page
