|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AID. - DeepSeek > !Generation Parameters > AID. - Artificial Intelligence DeepSeek Utility |
MiniRobotLanguage (MRL)
AID.Set Temperature
Set the Creativity Level for AI Responses
Intention
SetTemperature Command: Adjusting AI Response Creativity
The SetTemperature command allows you to control the randomness and creativity of responses generated by the DeepSeek API.
This setting influences how predictable or diverse the AI's output will be, making it essential for tailoring responses to specific needs.
It’s part of the AID - DeepSeek API suite.
The SetTemperature command adjusts the AID_Temperature global variable, which determines the creativity level of the AI’s responses when calling the DeepSeek API.
A lower value (e.g., 0.0) makes responses more deterministic and focused, while a higher value (e.g., 2.0) increases randomness and creativity.
USE CASE TEMPERATURE
Coding / Math 0.0
Data Cleaning / Data Analysis 1.0
General Conversation 1.3
Translation 1.3
Creative Writing / Poetry 1.5
Adjusting the temperature is crucial for:
•Precision: Lower values ensure consistent, factual responses for tasks like data analysis.
•Creativity: Higher values generate diverse, imaginative outputs for creative writing or brainstorming.
•Customization: Fine-tune the AI’s behavior to match your script’s goals.
Specify a numeric value between 0.0 and 2.0 to set the temperature. If an invalid value is provided, it defaults to 0.0.
This setting applies to subsequent API calls via AID.Ask or AID.AskT.
Example Usage
AID.Set Temperature|0.7
AID.Ask|What is the weather like today?|$$RES
DBP.Response: $$RES
Here, the temperature is set to 0.7 for a balanced response before querying the AI.
Illustration
┌───────────────┐
│ Temperature │
├───────────────┤
│ 0.0 - 2.0 │
└───────────────┘
Range of values for controlling AI response creativity.
Syntax
AID.SetTemperature|P1
AID.Set Temperature|P1
Parameter Explanation
P1 - A numeric value (0.0 to 2.0) specifying the temperature. Values outside this range default to 0.0.
Example
AID.Set Temperature|1.5
AID.Ask|Write a short story|$$STO
DBP.Story: $$STO
ENR.
Remarks
- Default temperature is 0.0 if not set or if an invalid value is provided.
- Affects all subsequent API calls until changed.
Limitations
- Values outside 0.0 to 2.0 are not supported and revert to the default (0.0).
- Does not validate the impact of the temperature on specific models.
See also:
• AID.Ask
• AID.AskT