Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class AIChatServiceOptions

    Configuration options for the AIChatService.

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

    Constructors

    AIChatServiceOptions()

    Configuration options for the AIChatService.

    Declaration
    public AIChatServiceOptions()

    Properties

    ApiKey

    Gets or sets the API key for authentication with the AI service.

    Declaration
    public string ApiKey { get; set; }
    Property Value
    Type Description
    string

    ApiKeyHeader

    Gets or sets the header name for the API key (e.g., 'Authorization' or 'api-key').

    Declaration
    public string ApiKeyHeader { get; set; }
    Property Value
    Type Description
    string

    Endpoint

    Gets or sets the endpoint URL for the AI service.

    Declaration
    public string Endpoint { get; set; }
    Property Value
    Type Description
    string

    MaxMessages

    Gets or sets the maximum number of messages to keep in conversation memory.

    Declaration
    public int MaxMessages { get; set; }
    Property Value
    Type Description
    int

    MaxTokens

    Gets or sets the maximum number of tokens to generate in the response.

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

    Model

    Gets or sets the model name to use for executing chat completions (e.g., 'gpt-3.5-turbo').

    Declaration
    public string Model { get; set; }
    Property Value
    Type Description
    string

    Proxy

    Gets or sets the proxy URL for the AI service, if any. If set, this will override the Endpoint.

    Declaration
    public string Proxy { get; set; }
    Property Value
    Type Description
    string

    SessionMaxAgeHours

    Gets or sets the maximum age in hours for conversation sessions before cleanup.

    Declaration
    public int SessionMaxAgeHours { get; set; }
    Property Value
    Type Description
    int

    SystemPrompt

    Gets or sets the system prompt for the AI assistant.

    Declaration
    public string SystemPrompt { get; set; }
    Property Value
    Type Description
    string

    Temperature

    Gets or sets the temperature for the AI model (0.0 to 2.0). Set to 0.0 for deterministic responses, higher values for more creative outputs.

    Declaration
    public double Temperature { get; set; }
    Property Value
    Type Description
    double

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT