Share via


CompletionsOptions.Temperature Property

Definition

Gets or sets the sampling temperature to use that controls the apparent creativity of generated completions. Has a valid range of 0.0 to 2.0 and defaults to 1.0 if not otherwise specified.

public float? Temperature { get; set; }
member this.Temperature : Nullable<single> with get, set
Public Property Temperature As Nullable(Of Single)

Property Value

Remarks

Higher values will make output more random while lower values will make results more focused and deterministic.

It is not recommended to modify Temperature and NucleusSamplingFactor for the same completions request as the interaction of these two settings is difficult to predict.

Applies to