AIChatServiceOptions Class

Configuration options for the AIChatService.

Inheritance

Object

AIChatServiceOptions

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class AIChatServiceOptions

Constructors

AIChatServiceOptionslink

Configuration options for the AIChatService.

Declaration
public AIChatServiceOptions()

Properties

ApiKeylink

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

Declaration
public string ApiKey { get; set; }
Property Value
Type Description
stringGets or sets the API key for authentication with the AI service.

ApiKeyHeaderlink

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
stringGets or sets the header name for the API key (e.g., 'Authorization' or 'api-key').

Endpointlink

Gets or sets the endpoint URL for the AI service.

Declaration
public string Endpoint { get; set; }
Property Value
Type Description
stringGets or sets the endpoint URL for the AI service.

MaxMessageslink

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

Declaration
public int MaxMessages { get; set; }
Property Value
Type Description
intGets or sets the maximum number of messages to keep in conversation memory.

MaxTokenslink

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

Declaration
public int? MaxTokens { get; set; }
Property Value
Type Description
int?Gets or sets the maximum number of tokens to generate in the response.

Modellink

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
stringGets or sets the model name to use for executing chat completions (e.g., 'gpt-3.5-turbo').

Proxylink

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
stringGets or sets the proxy URL for the AI service, if any. If set, this will override the Endpoint.

SessionMaxAgeHourslink

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

Declaration
public int SessionMaxAgeHours { get; set; }
Property Value
Type Description
intGets or sets the maximum age in hours for conversation sessions before cleanup.

SystemPromptlink

Gets or sets the system prompt for the AI assistant.

Declaration
public string SystemPrompt { get; set; }
Property Value
Type Description
stringGets or sets the system prompt for the AI assistant.

Temperaturelink

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
doubleGets 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.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙