|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI > AIO Commands |
MiniRobotLanguage (MRL)
AIO.SetProvider
Sets provider routing preferences for AI model selection and prioritization.
This command allows you to define the preferred order of AI providers and specify which providers should be ignored when routing requests.
AIO.SetProvider|$$JSON
$$JSON
JSON object containing provider preferences including 'order' and 'ignore' arrays.
The JSON object supports the following properties:
order - Array of provider names in priority order (first = highest priority)
ignore - Array of provider names to exclude from routing
Available providers include:
• OpenAI
• Anthropic
• Mistral
• Google (Gemini)
• Cohere
• Azure OpenAI
Set OpenAI and Anthropic as primary providers in that order, and ignore Mistral:
AIO.SetProvider|{"order":["OpenAI","Anthropic"],"ignore":["Mistral"]}
Set only Anthropic as preferred provider:
AIO.SetProvider|{"order":["Anthropic"]}
Ignore multiple providers:
AIO.SetProvider|{"ignore":["Mistral","Cohere"]}
AIO.GetProvider - Retrieves current provider routing preferences
AIO.ResetProvider - Resets provider settings to defaults
AIO.ListModels - Lists available models for configured providers
The provider order affects automatic model selection when multiple providers offer similar capabilities. If the primary provider is unavailable, the system will attempt to use the next provider in the order.
Ignored providers are completely excluded from all routing decisions, regardless of their position in the order array.
Changes take effect immediately for subsequent AIO commands in the same session.
Introduced in version 2.5.0