AIO Commands

<< Click to Display Table of Contents >>

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

AIO Commands

AIO.SetLogitBias

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetLogitBias

 

Description

Sets logit bias to increase or decrease the likelihood of specific tokens appearing in the generated output.

 

Syntax

AIO.SetLogitBias|$$BIAS_JSON

 

Parameters

$$BIAS_JSON (Required)

A JSON object mapping token IDs (as string keys) to bias values (integers from -100 to 100). Each key-value pair represents a token ID and its corresponding bias value.

 

Example

AIO.SetLogitBias|{"12345":-100,"67890":50}

This example sets a logit bias where:

• Token ID 12345 is effectively banned (bias: -100)

• Token ID 67890 is encouraged (bias: 50)

 

See Also

AIO.SetTemperature

AIO.SetTopP

AIO.SetTopK

AIO.SetPresencePenalty

AIO.SetFrequencyPenalty

AIO.SetMaxTokens

AIO.Generate

 

Remarks

Negative bias values make tokens less likely to appear in the output.

Positive bias values make tokens more likely to appear in the output.

A value of -100 effectively bans the token from appearing.

A value of 100 strongly encourages the token to appear.

Bias values must be within the range of -100 to 100.

Token IDs must be valid numeric identifiers for the specific AI model being used.