AIO Commands

<< Click to Display Table of Contents >>

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

AIO Commands

AIO.SetProvider

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetProvider

 

Description

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.

 

Syntax

AIO.SetProvider|$$JSON

 

Parameters

$$JSON

JSON object containing provider preferences including 'order' and 'ignore' arrays.

 

JSON Format

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

 

Example

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"]}

 

See Also

AIO.GetProvider - Retrieves current provider routing preferences

AIO.ResetProvider - Resets provider settings to defaults

AIO.ListModels - Lists available models for configured providers

 

Remarks

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.

 

Version Info

Introduced in version 2.5.0