SearchModelFactory.ChatCompletionCommonModelParameters Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
A float in the range [-2,2] that reduces or increases likelihood of repeated tokens. Default is 0.
A float in the range [-2,2] that penalizes new tokens based on their existing presence. Default is 0.
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.