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

18 lines
848 B
C#
Raw Normal View History

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