PromptToExpressionBehaviorProperties.Temperature Property
Gets or sets the balance between creativity and consistency in AI responses.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v25.2.dll
NuGet Package: DevExpress.AIIntegration.WinForms
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Nullable<Single> | null | A number between 0 and 1 (or 0 and 2) depending on the AI behavior and model. |
Remarks
The Temperature parameter controls the randomness of the output. Lower temperatures yield more predictable and focused outputs, while higher temperatures produce more diverse and creative responses.
Note
Set the Temperature property to 1 for models (for example, GPT-5, o1, and o3 series) that ignore this parameter to avoid compatibility errors.
See Also