aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs
diff options
context:
space:
mode:
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.cs24
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;
+ }
+}