alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ChatParameters

    Represents the parameters used for configuring AI chat requests.

    Inheritance
    object
    ChatParameters
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.AI
    Assembly: Syncfusion.Blazor.AI.dll
    Syntax
    public class ChatParameters

    Constructors

    ChatParameters()

    Declaration
    public ChatParameters()

    Properties

    FrequencyPenalty

    Penalizes repeated words or phrases based on their frequency in the generated text. Higher values reduce repetition.

    Declaration
    public float? FrequencyPenalty { get; set; }
    Property Value
    Type
    float?

    MaxTokens

    Specifies the maximum number of tokens (words or subwords) that the AI model can generate in a response.

    Declaration
    public int? MaxTokens { get; set; }
    Property Value
    Type
    int?

    Messages

    A list of chat messages that form the conversation history. These messages help provide context for the AI model to generate responses.

    Declaration
    public List<ChatMessage>? Messages { get; set; }
    Property Value
    Type
    List<ChatMessage>

    PresencePenalty

    Encourages the AI to introduce new topics by reducing the likelihood of repeating previous concepts. Higher values encourage diversity in responses.

    Declaration
    public float? PresencePenalty { get; set; }
    Property Value
    Type
    float?

    StopSequences

    A list of sequences that, when encountered, will cause the AI to stop generating further tokens. Useful for enforcing response constraints.

    Declaration
    public List<string> StopSequences { get; set; }
    Property Value
    Type
    List<string>

    Temperature

    Controls the randomness of the AI-generated responses. Lower values make responses more deterministic, while higher values increase variability.

    Declaration
    public float? Temperature { get; set; }
    Property Value
    Type
    float?

    TopP

    An alternative to Temperature that controls the probability mass of token selection. A lower value results in more focused responses by limiting token choices.

    Declaration
    public float? TopP { get; set; }
    Property Value
    Type
    float?
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved