Back to Devexpress

PromptToExpressionBehaviorProperties.Temperature Property

windowsforms-devexpress-dot-aiintegration-dot-winforms-dot-prompttoexpressionbehaviorproperties-cdb864f4.md

latest1.9 KB
Original Source

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

csharp
[DefaultValue(null)]
public float? Temperature { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Temperature As Single?

Property Value

TypeDefaultDescription
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

Prompt to Expression

PromptToExpressionBehaviorProperties Class

PromptToExpressionBehaviorProperties Members

DevExpress.AIIntegration.WinForms Namespace