namespace Admin.NET.Core.Ai.Option; /// /// LLM配置选项 /// 基于于Microsoft Semantic Kernel实现,也是本应用的默认实现 /// public class LLMOptions : IConfigurableOptions { public string ModelProvider { get; set; } public string InitSystemChatMessage { get; set; } public bool UserCanSwitchLLM { get; set; } public int TargetCount { get; set; } public int ThresholdCount { get; set; } public bool IsUserProxy { get; set; } public string ProxyUrl { get; set; } public bool LogEnabled { get; set; } public List Providers { get; set; } } /// /// LLM提供者选项 /// public class ProviderOptions { public string ProductName { get; set; } public string LLMType { get; set; } public string ApiKey { get; set; } public string ApiEndpoint { get; set; } public string ApiSecret { get; set; } public string Region { get; set; } public ChatCompletionOptions ChatCompletion { get; set; } public EmbeddingOptions Embedding { get; set; } } /// /// 聊天完成选项 /// public class ChatCompletionOptions { public string ModelId { get; set; } public List SupportModelIds { get; set; } } /// /// 嵌入选项 /// public class EmbeddingOptions { public string ModelId { get; set; } public List SupportModelIds { get; set; } }