diff options
| author | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-02 20:36:48 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-02 20:36:48 +0300 |
| commit | dc0d050ad35973e1ae09e3c7e47bc1fb13eedcd2 (patch) | |
| tree | f1921cbdfca16b254a9046ab1e8dd17427d81dcd /Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs | |
| parent | f41758ec7d1e28deae447199fc0024467c84a9d4 (diff) | |
| download | Tango-dc0d050ad35973e1ae09e3c7e47bc1fb13eedcd2.tar.gz Tango-dc0d050ad35973e1ae09e3c7e47bc1fb13eedcd2.zip | |
Portal AI
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs')
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs new file mode 100644 index 000000000..f59ffa8d7 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs @@ -0,0 +1,24 @@ +namespace ChatADX.Web.Services +{ + public sealed class LlmOptions + { + // If using Azure OpenAI, set IsAzure = true and Endpoint = full chat completions URL (with api-version query). + // If using OpenAI, set IsAzure = false and Endpoint = https://api.openai.com/v1/chat/completions + public bool IsAzure { get; set; } = false; + public string Endpoint { get; set; } = string.Empty; + public string ApiKey { get; set; } = string.Empty; + public string Model { get; set; } = "gpt-4o-mini"; // or your Azure deployment name + public double Temperature { get; set; } = 0.2; + public string AnswererAssistantId { get; set; } = string.Empty; // NEW + public string DocsAssistantId { get; set; } = string.Empty; // NEW + } + + public sealed class AdxOptions + { + public string ClusterUri { get; set; } = string.Empty; + public string Database { get; set; } = string.Empty; + public string TenantId { get; set; } = string.Empty; + public string ClientId { get; set; } = string.Empty; + public string ClientSecret { get; set; } = string.Empty; + } +} |
