|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.SetChatEndpoint |
Top |
MiniRobotLanguage (MRL)
AIC.SetChatEndpoint
Set chat API endpoint URL
Intention
The AIC.SetChatEndpoint command sets a custom endpoint URL for OpenAI chat API calls (GPT-3.5, GPT-4, etc.). This is useful for using Azure OpenAI, proxy servers, or other compatible API endpoints.
Syntax
AIC.SetChatEndpoint|$$Url
P1 - $$Url - The chat endpoint URL
Example
' Set Azure OpenAI chat endpoint
AIC.SetChatEndpoint|https://your-resource.openai.azure.com/openai/deployments/your-deployment/chat/completions
' Use with chat API
AIC.Ask|Hello, how are you?|$$Result
Related Commands
- AIC.SetCompEndpoint - Set completion endpoint