Class AIChatServiceOptions
Configuration options for the AIChatService.
Inherited Members
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 |