AIO Commands

<< Click to Display Table of Contents >>

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

AIO Commands

AIO.SetRepPen

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetRepPen

 

Description

Sets the repetition penalty (OpenRouter-specific extension). This command helps reduce repetition of tokens from the input, making the AI-generated output more varied and natural.

 

Syntax

AIO.SetRepPen|$$PENALTY

 

Parameters

$$PENALTY

Type: Float

The penalty value that controls how much the AI should avoid repeating tokens from the input. Values greater than 1.0 increase the penalty for repetition, while values less than 1.0 decrease it.

Range: 0.0 to 2.0

Default: 1.0

 

Example

Sets a moderate repetition penalty of 1.2, which will discourage the AI from repeating phrases from the input while still maintaining coherence:

AIO.SetRepPen|1.2

 

See Also

AIO.SetTemp

AIO.SetTopP

AIO.SetFreqPen

AIO.SetPresPen

 

Remarks

Helps reduce repetition of tokens from the input.

Higher values make repetition less likely, resulting in more varied output.

Too high values can make the output incoherent or nonsensical.

This is an OpenRouter-specific extension and may not be available on all AI providers.

The default value of 1.0 means no penalty is applied (neutral setting).