|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AID. - DeepSeek > !Model Configuration > AID. - Artificial Intelligence DeepSeek Utility |
MiniRobotLanguage (MRL)
AID.Get Model
Retrieve the Current DeepSeek Model
Intention
GetModel Command: Retrieve the Current DeepSeek Model
The GetModel command fetches the currently set DeepSeek model used for API requests.
This is useful for verifying or utilizing the model in your scripts.
It’s part of the AID - DeepSeek API suite.
The GetModel command retrieves the current value of the AID_Model variable, which defines the DeepSeek model in use.
You can store this value in a variable or, if no variable is specified, it will be placed on the Top of Stack (TOS).
Retrieving the current model is valuable for:
•Verification: Confirm which model is currently active.
•Script Logic: Use the model name in conditional statements or logs.
•Debugging: Ensure the correct model is set before making API calls.
The command can be called with or without a variable to store the result.
By default, AID_Model is deepseek-chat unless changed via AID.Set Model.
Example Usage
AID.Get Model|$$MOD
DBP.Current Model: $$MOD
AID.Get Model
POP.$$MOD
DBP.Model from Stack: $$MOD
Returns the current model, e.g., deepseek-chat.
Illustration
┌───────────────┐
│ AID_Model │
├───────────────┤
│ deepseek-chat │
└───────────────┘
A simple representation of retrieving the current model.
Syntax
AID.GetModel[|P1]
AID.Get Model[|P1]
Parameter Explanation
P1 - (Optional) The variable where the model name will be stored. If omitted, the name is placed on the Top of Stack (TOS).
Example
AID.Get Model|$$MOD
DBP.Current Model: $$MOD
ENR.
Remarks
- The default model is deepseek-chat unless modified by AID.Set Model.
- Always returns a string representing the current model.
Limitations
- Does not validate whether the current model is supported by the DeepSeek API.
See also:
• AID.Ask