<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Set Parameters > AIC. - Artificial Intelligence Command |
MiniRobotLanguage (MRL)
AIC.Set Presence
Setting this Parameter will tell AI to avoid repetitions
Intention
The "presence_penalty" parameter controls how much the OpenAI API model avoids generating repetitive or redundant responses in the conversation history.
The "presence_penalty" parameter typically accepts values between -2.0 and 2.0, where 0.0 means no penalty for repetitive responses and 1.0 means the model will strongly avoid repetition.
The default value for "presence_penalty" is usually 0.6, but it's recommended to experiment with different values based on the desired level of response repetition in your specific use case.
If omitted or set to 99 it will be omitted and will not be present in the Code. This is recommended if you do not need this parameter.
Syntax
AIC.Set Presence[|P1]
Parameter Explanation
P1 - (optional) A numeric value between -2 and 2. If omitted or set to 99 the Parameter will not be used and the AI can use internal Presets.
A good default value is between 0 and 0.6.
Example
'***********************************
'
'***********************************
Remarks
-
Limitations:
-
See also:
•