mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 21:29:06 +00:00
14 lines
705 B
C#
14 lines
705 B
C#
namespace AIStudio.Settings.DataModel;
|
|
|
|
public static class PreviewFeatureExtensions
|
|
{
|
|
public static string GetPreviewDescription(this PreviewFeatures feature) => feature switch
|
|
{
|
|
PreviewFeatures.PRE_WRITER_MODE_2024 => "Writer Mode: Experiments about how to write long texts using AI",
|
|
PreviewFeatures.PRE_RAG_2024 => "RAG: Preview of our RAG implementation where you can refer your files or integrate enterprise data within your company",
|
|
|
|
_ => "Unknown preview feature"
|
|
};
|
|
|
|
public static bool IsEnabled(this PreviewFeatures feature, SettingsManager settingsManager) => settingsManager.ConfigurationData.App.EnabledPreviewFeatures.Contains(feature);
|
|
} |