Configuration options for the AIChatService.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class AIChatServiceOptionsConfiguration options for the AIChatService.
public AIChatServiceOptions()Gets or sets the API key for authentication with the AI service.
public string ApiKey { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the API key for authentication with the AI service. |
Gets or sets the header name for the API key (e.g., 'Authorization' or 'api-key').
public string ApiKeyHeader { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the header name for the API key (e.g., 'Authorization' or 'api-key'). |
Gets or sets the endpoint URL for the AI service.
public string Endpoint { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the endpoint URL for the AI service. |
Gets or sets the maximum number of messages to keep in conversation memory.
public int MaxMessages { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the maximum number of messages to keep in conversation memory. |
Gets or sets the maximum number of tokens to generate in the response.
public int? MaxTokens { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the maximum number of tokens to generate in the response. |
Gets or sets the model name to use for executing chat completions (e.g., 'gpt-3.5-turbo').
public string Model { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the model name to use for executing chat completions (e.g., 'gpt-3.5-turbo'). |
Gets or sets the proxy URL for the AI service, if any. If set, this will override the Endpoint.
public string Proxy { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the proxy URL for the AI service, if any. If set, this will override the Endpoint. |
Gets or sets the maximum age in hours for conversation sessions before cleanup.
public int SessionMaxAgeHours { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the maximum age in hours for conversation sessions before cleanup. |
Gets or sets the system prompt for the AI assistant.
public string SystemPrompt { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the system prompt for the AI assistant. |
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.
public double Temperature { get; set; }
| Type | Description |
|---|---|
| double | 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. |