|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI > AIO.SetModalities |
MiniRobotLanguage (MRL)
AIO.SetModalities|`JSON
Set Response Modalities
Purpose
Sets the desired response modalities for AI requests. This specifies what types of content the AI should generate in its response, such as text, images, or other formats supported by the model.
Syntax
AIO.SetModalities|`JSON
Parameters
`JSON - A JSON array specifying the desired response modalities. Common values include "text" and "image".
Available Modalities
text - Generate text responses
image - Generate image responses
JSON Format
["text"]
["text","image"]
Notes
- Not all models support all modalities
- Model must support image generation for "image" modality
- Defaults to ["text"] if not specified
- Cleared when AIO.Init is called
Example
' Enable both text and image responses
AIO.SetModalities|["text","image"]
' Request may include both text and generated images
AIO.Chat|Draw a cat and describe it|`Result
Related Commands
AIO.SetImgConfig - Configure image generation
AIO.SetModel - Select capable model