AI-Studio/app/MindWork AI Studio/Assistants/ERI/AllowedLLMProvidersExtensions.cs

13 lines
605 B
C#
Raw Normal View History

2025-01-01 14:49:27 +00:00
namespace AIStudio.Assistants.ERI;
public static class AllowedLLMProvidersExtensions
{
2025-02-25 18:58:17 +00:00
public static string Description(this AllowedLLMProviders provider) => provider switch
2025-01-01 14:49:27 +00:00
{
2025-02-25 18:58:17 +00:00
AllowedLLMProviders.NONE => "Please select what kind of LLM provider are allowed for this data source",
AllowedLLMProviders.ANY => "Any LLM provider is allowed: users might choose a cloud-based or a self-hosted provider",
AllowedLLMProviders.SELF_HOSTED => "Self-hosted LLM providers are allowed: users cannot choose any cloud-based provider",
_ => "Unknown option was selected"
};
2025-01-01 14:49:27 +00:00
}