AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.TestIfOnline

Top


MiniRobotLanguage (MRL)

 

AIC.TestIfOnline

Test if OpenAI API is accessible

 

Intention

 

The AIC.TestIfOnline command checks whether the OpenAI API is reachable and the configured credentials are valid. Returns status information.

 

Syntax

 

AIC.TestIfOnline|$$ResultVar

 

Parameters

 

P1 - $$ResultVar (optional) - Variable to receive status: "Online" or error message

 

Example

 

' Check API connectivity

AIC.TestIfOnline|$$Status

IF.$$Status|=|Online

 MBX.API is accessible!

ELS.

 MBX.Connection failed: $$Status

END.

 

Related Commands

 

- AIC.SetKey - Set API key
- AIC.SetProxyOn - Configure proxy