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.HttpRequest

Top


MiniRobotLanguage (MRL)

 

AIC.HttpRequest

DESCRIPTION

 

Intention

 

Makes a direct HTTP request to the OpenAI API or compatible endpoints. This low-level command allows custom API calls with full control over headers, method, and body. Useful for accessing API features not covered by higher-level commands.

 

Syntax

 

AIC.HttpRequest|method,url,headers,body

 

Example

 

' Make custom API request

response = AIC.HttpRequest|"POST","https://api.openai.com/v1/chat/completions",headers,jsonBody