aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-04 13:42:02 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-04 13:42:02 +0300
commit72d2d9316e27f623456574dd854da064611254a1 (patch)
tree85293806e5e432d8ab6b96e03e084ab5a1599c08 /Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models
parent13f9257daed202db98442f4a97167fd4d0e09e14 (diff)
downloadTango-72d2d9316e27f623456574dd854da064611254a1.tar.gz
Tango-72d2d9316e27f623456574dd854da064611254a1.zip
OpenAI & Claude Providers.
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models')
-rw-r--r--Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs22
1 files changed, 18 insertions, 4 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
index bfd8fdaf5..6c6a537d6 100644
--- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs
+++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/Options.cs
@@ -1,16 +1,30 @@
namespace Tango.Portal.Chat.Web.Services
{
+ public enum LlmProvider
+ {
+ OpenAI,
+ Claude
+ }
+
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;
+ // Provider selection: OpenAI, AzureOpenAI, or Claude
+ public LlmProvider Provider { get; set; } = LlmProvider.OpenAI;
+
+ // If using OpenAI, set Provider = OpenAI and Endpoint = https://api.openai.com/v1/chat/completions
+ // If using Claude, set Provider = Claude and Endpoint = https://api.anthropic.com/v1/messages
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 string Model { get; set; } = "gpt-4o-mini"; // or your Azure deployment name, or claude-3-5-sonnet-20241022
public double Temperature { get; set; } = 0.2;
public string AnswererAssistantId { get; set; } = string.Empty; // NEW
public string DocsAssistantId { get; set; } = string.Empty; // NEW
+
+ // Claude-specific settings
+ public string ClaudeApiKey { get; set; } = string.Empty;
+ public string ClaudeModel { get; set; } = "claude-3-5-sonnet-20241022";
+ public string ClaudeEndpoint { get; set; } = "https://api.anthropic.com/v1/messages";
+ public int MaxTokens { get; set; } = 4000;
}
public sealed class AdxOptions