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

Top


MiniRobotLanguage (MRL)

 

AIC.SetEndpoint

Set API endpoint URL

 

Intention

 

The AIC.SetEndpoint command sets a custom API endpoint URL. This is useful for using Azure OpenAI, proxy servers, or OpenAI-compatible APIs.

 

Syntax

 

AIC.SetEndpoint|$$EndpointURL

 

P1 - $$EndpointURL - Full API endpoint URL

 

Default Endpoints

 

Chat: https://api.openai.com/v1/chat/completions

Legacy: https://api.openai.com/v1/completions

 

Example

 

' Use Azure OpenAI endpoint

AIC.SetEndpoint|https://your-resource.openai.azure.com/openai/deployments/your-deployment/chat/completions?api-version=2024-02-01

 

' Reset to default

AIC.SetEndpoint|https://api.openai.com/v1/chat/completions

 

Related Commands

 

- AIC.SetChatEndpoint - Set chat endpoint only

- AIC.SetKey - Set API key