ChatCompletionCommonModelParameters Class
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 class ChatCompletionCommonModelParameters : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.ChatCompletionCommonModelParameters>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.ChatCompletionCommonModelParameters>
type ChatCompletionCommonModelParameters = class
interface IJsonModel<ChatCompletionCommonModelParameters>
interface IPersistableModel<ChatCompletionCommonModelParameters>
Public Class ChatCompletionCommonModelParameters
Implements IJsonModel(Of ChatCompletionCommonModelParameters), IPersistableModel(Of ChatCompletionCommonModelParameters)
- Inheritance
-
ChatCompletionCommonModelParameters
- Implements
Constructors
| Name | Description |
|---|---|
| ChatCompletionCommonModelParameters() |
Initializes a new instance of ChatCompletionCommonModelParameters. |
Properties
| Name | Description |
|---|---|
| FrequencyPenalty |
A float in the range [-2,2] that reduces or increases likelihood of repeated tokens. Default is 0. |
| MaxTokens |
Maximum number of tokens to generate. |
| ModelName |
The name of the model to use (e.g., 'gpt-4o', etc.). Default is null if not specified. |
| PresencePenalty |
A float in the range [-2,2] that penalizes new tokens based on their existing presence. Default is 0. |
| Seed |
Random seed for controlling deterministic outputs. If omitted, randomization is used. |
| Stop |
List of stop sequences that will cut off text generation. Default is none. |
| Temperature |
Sampling temperature. Default is 0.7. |