|
<< 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.SetEndPoint
Set the DeepSeek API Endpoint URL
Intention
SetEndPoint Command: Configuring the API Endpoint
The SetEndPoint command allows you to specify the URL endpoint for DeepSeek API requests, overriding the default setting.
This provides flexibility to adapt to API updates or use alternative endpoints as needed.
It’s part of the AID - DeepSeek API suite.
The SetEndPoint command updates the global AID_EndPoint variable with a user-specified URL for DeepSeek API calls.
By default, it is set to https://api.deepseek.com/v1/chat/completions, but you can change it to any valid endpoint URL.
Customizing the API endpoint is essential for:
•Adaptability: Adjust to new or regional DeepSeek API endpoints as they become available.
•Testing: Use alternative endpoints for debugging or experimental features.
•Future-Proofing: Ensure compatibility with API updates or version changes.
Provide a valid URL as the parameter to set the endpoint for subsequent API calls.
The default endpoint is https://api.deepseek.com/v1/chat/completions, as specified in the DeepSeek API documentation (as of March 2025).
Example Usage
AID.SetEndPoint|https://api.deepseek.com/v1/chat/completions
DBP.Endpoint set to default DeepSeek API URL
This sets the endpoint to the standard DeepSeek chat completions URL.
Illustration
┌──────────────────────┐
│ AID_EndPoint │
├──────────────────────┤
│ https://api.deepseek │
│ .com/v1/chat/... │
└──────────────────────┘
Setting the DeepSeek API endpoint URL.
Syntax
AID.SetEndPoint|P1
AID.Set_EndPoint|P1
Parameter Explanation
P1 - The URL to set as the DeepSeek API endpoint (e.g., "https://api.deepseek.com/v1/chat/completions").
Example
AID.SetEndPoint|https://api.deepseek.com/v1/chat/completions
AID.Ask|What is AI?|$$RES
DBP.Response: $$RES
ENR.
Remarks
- The endpoint must be a valid URL; invalid URLs may cause API calls to fail.
- If no parameter is provided, it resets to the default https://api.deepseek.com/v1/chat/completions.
Limitations
- Only one endpoint can be active at a time.
- No validation is performed on the URL’s correctness or accessibility.
See also:
• AID.Ask