|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AID. - DeepSeek > !Endpoint Configuration > AID. - Artificial Intelligence DeepSeek Utility |
MiniRobotLanguage (MRL)
AID.GetEndPoint
Retrieve Current DeepSeek API Endpoint URL
Intention
GetEndPoint Command: Retrieving the Current API Endpoint
The GetEndPoint command fetches the current URL endpoint used for DeepSeek API requests.
This is useful for verifying or utilizing the endpoint in your scripts.
It’s part of the AID - DeepSeek API suite.
The GetEndPoint command retrieves the current value of the AID_EndPoint variable, which defines the URL for DeepSeek API calls.
You can store this URL in a variable or, if no variable is specified, it will be placed on the Top of Stack (TOS).
Retrieving the API endpoint is valuable for:
•Verification: Confirm the endpoint being used for API requests.
•Debugging: Check if the endpoint aligns with your script’s expectations.
•Dynamic Usage: Use the endpoint in custom logic or logging.
The command can be called with or without a variable to store the result.
By default, AID_EndPoint is set to https://api.deepseek.com/v1/chat/completions unless changed via AID.SetEndPoint.
Example Usage
AID.GetEndPoint|$$URL
DBP.Current Endpoint: $$URL
AID.GetEndPoint
POP.$$URL
DBP.Endpoint from Stack: $$URL
The returned URL reflects the current endpoint setting.
Illustration
┌──────────────────────┐
│ AID_EndPoint │
├──────────────────────┤
│ https://api.deepseek │
│ .com/v1/chat/... │
└──────────────────────┘
Retrieving the current DeepSeek API endpoint URL.
Syntax
AID.GetEndPoint[|P1]
AID.Get_EndPoint[|P1]
Parameter Explanation
P1 - (Optional) The variable where the endpoint URL will be stored. If omitted, the URL is placed on the Top of Stack (TOS).
Example
AID.GetEndPoint|$$END
DBP.Current Endpoint: $$END
ENR.
Remarks
- The default endpoint is https://api.deepseek.com/v1/chat/completions unless modified by AID.SetEndPoint.
- The returned value is always a string representing the current URL.
Limitations
- The command only retrieves the current endpoint and does not validate its correctness.
See also:
• AID.Ask