|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI > AIO Commands |
MiniRobotLanguage (MRL)
AIO.SetLogitBias
Sets logit bias to increase or decrease the likelihood of specific tokens appearing in the generated output.
AIO.SetLogitBias|$$BIAS_JSON
$$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.
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)
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.