AIO Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI >

AIO Commands

AIO.SetPresPen

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetPresPen

 

Description

Sets the presence penalty to reduce token repetition in generated text.

 

Syntax

AIO.SetPresPen|$$PENALTY

 

Parameters

$$PENALTY

Penalty value ranging from -2.0 to 2.0. Default is 0.0.

Range: -2.0 to 2.0

Default: 0.0

 

Example

Sets the presence penalty to 0.5, encouraging the model to use more diverse tokens and reducing repetition:

AIO.SetPresPen|0.5

 

See Also

AIO.SetFreqPen

AIO.SetTemperature

AIO.SetTopP

AIO.SetMaxTokens

 

Remarks

Positive values reduce repetition of tokens already present in the text.

Higher values result in less repetition of previously used tokens.

The penalty does not scale with token frequency.

Adjust this parameter to control the diversity of generated content.