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

Top


MiniRobotLanguage (MRL)

 

AIC.SetCompEndpoint

Set completion API endpoint URL

 

Intention

 

The AIC.SetCompEndpoint command sets a custom endpoint URL for OpenAI completion API calls. This is useful for using Azure OpenAI, proxy servers, or other compatible API endpoints.

 

Syntax

 

AIC.SetCompEndpoint|$$Url

 

P1 - $$Url - The completion endpoint URL

 

Example

 

' Set custom Azure endpoint

AIC.SetCompEndpoint|https://your-resource.openai.azure.com/openai/deployments/your-deployment/completions

 

' Use with completion API

AIC.AskCompletion|Hello world|$$Result