-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAIOptions.cs
More file actions
31 lines (25 loc) · 947 Bytes
/
AIOptions.cs
File metadata and controls
31 lines (25 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace EssentialCSharp.Chat;
public class AIOptions
{
/// <summary>
/// The Azure OpenAI deployment name for text embedding generation.
/// </summary>
public string VectorGenerationDeploymentName { get; set; } = string.Empty;
/// <summary>
/// The Azure OpenAI deployment name for chat completions.
/// </summary>
public string ChatDeploymentName { get; set; } = string.Empty;
/// <summary>
/// The system prompt to use for the chat model.
/// </summary>
public string SystemPrompt { get; set; } = string.Empty;
/// <summary>
/// The Azure OpenAI endpoint URL.
/// </summary>
public string Endpoint { get; set; } = string.Empty;
/// <summary>
/// When true, uses a local Ollama backend via IChatClient instead of Azure OpenAI.
/// Set by Aspire via the AIOptions__UseLocalAI environment variable.
/// </summary>
public bool UseLocalAI { get; set; }
}