SearchModelFactory.ChatCompletionCommonModelParameters Method

Definition

Common language model parameters for Chat Completions. If omitted, default values are used.

public static Azure.Search.Documents.Indexes.Models.ChatCompletionCommonModelParameters ChatCompletionCommonModelParameters(string modelName = default, double? frequencyPenalty = default, double? presencePenalty = default, int? maxTokens = default, double? temperature = default, int? seed = default, System.Collections.Generic.IEnumerable<string> stop = default);
static member ChatCompletionCommonModelParameters : string * Nullable<double> * Nullable<double> * Nullable<int> * Nullable<double> * Nullable<int> * seq<string> -> Azure.Search.Documents.Indexes.Models.ChatCompletionCommonModelParameters
Public Shared Function ChatCompletionCommonModelParameters (Optional modelName As String = Nothing, Optional frequencyPenalty As Nullable(Of Double) = Nothing, Optional presencePenalty As Nullable(Of Double) = Nothing, Optional maxTokens As Nullable(Of Integer) = Nothing, Optional temperature As Nullable(Of Double) = Nothing, Optional seed As Nullable(Of Integer) = Nothing, Optional stop As IEnumerable(Of String) = Nothing) As ChatCompletionCommonModelParameters

Parameters

modelName
String

The name of the model to use (e.g., 'gpt-4o', etc.). Default is null if not specified.

frequencyPenalty
Nullable<Double>

A float in the range [-2,2] that reduces or increases likelihood of repeated tokens. Default is 0.

presencePenalty
Nullable<Double>

A float in the range [-2,2] that penalizes new tokens based on their existing presence. Default is 0.

maxTokens
Nullable<Int32>

Maximum number of tokens to generate.

temperature
Nullable<Double>

Sampling temperature. Default is 0.7.

seed
Nullable<Int32>

Random seed for controlling deterministic outputs. If omitted, randomization is used.

stop
IEnumerable<String>

List of stop sequences that will cut off text generation. Default is none.

Returns

A new ChatCompletionCommonModelParameters instance for mocking.

Applies to