|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.SetMaxToken |
Top |
MiniRobotLanguage (MRL)
AIC.SetMaxToken
Set maximum tokens for response
Intention
The AIC.SetMaxToken command sets the maximum number of tokens (words/pieces of words) the AI can generate in its response. This controls response length and cost.
Syntax
AIC.SetMaxToken|$$MaxTokens
P1 - $$MaxTokens - Maximum tokens (1-4096+ depending on model)
Token Guidelines
100: Short answers (1-2 sentences)
500: Medium responses (1-2 paragraphs)
2000: Long detailed responses
4096: Maximum for most models
Example
' Set short responses
AIC.SetMaxToken|150
AIC.Ask|What is 2+2?|$$Answer
' Allow longer responses
AIC.SetMaxToken|2000
Related Commands
- AIC.SetModel - Set AI model
- AIC.Ask - Send chat message