|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« AIN. - AnythingLLM AI |
MiniRobotLanguage (MRL)
AIN.GetChatEndpoint
Get the Current Chat Endpoint URL
Intention
Retrieve the Current Chat Endpoint
The AIN.GetChatEndpoint command retrieves the currently set chat endpoint URL used by the AnythingLLM API integration, such as http://localhost:3001/api/chat.
This command returns the active endpoint URL for chat completions, set via AIN.SetChatEndpoint or defaulting to http://localhost:3001/api/chat.
Useful for:
•Debugging: Verify the endpoint in use.
•Dynamic Configuration: Adjust scripts based on the active endpoint.
Call AIN.GetChatEndpoint with an optional variable to store the result; otherwise, it’s pushed to the stack.
Example Usage
AIN.SetChatEndpoint|http://my-server:3001/api/chat
AIN.GetChatEndpoint|$$END
DBP.Current Endpoint: $$END
Outputs: "Current Endpoint: http://my-server:3001/api/chat"
Syntax
AIN.GetChatEndpoint[|P1]
Parameter Explanation
P1 - (Optional) Variable to store the endpoint URL (e.g., $$END); defaults to stack if omitted.
Remarks
- Returns empty string if no endpoint is set.
- Alias: AIN.GCE
Limitations
- Only retrieves the chat endpoint, not vision or other endpoints.
See also: