From 6c1981ebd370be03fc014c62080d8e551e6dd728 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 29 Jan 2025 20:46:49 +0100 Subject: [PATCH] Added provider type extensions to explain the different options --- .../ERIClient/DataModel/ProviderTypeExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/MindWork AI Studio/Tools/ERIClient/DataModel/ProviderTypeExtensions.cs diff --git a/app/MindWork AI Studio/Tools/ERIClient/DataModel/ProviderTypeExtensions.cs b/app/MindWork AI Studio/Tools/ERIClient/DataModel/ProviderTypeExtensions.cs new file mode 100644 index 0000000..ecdbcc1 --- /dev/null +++ b/app/MindWork AI Studio/Tools/ERIClient/DataModel/ProviderTypeExtensions.cs @@ -0,0 +1,13 @@ +namespace AIStudio.Tools.ERIClient.DataModel; + +public static class ProviderTypeExtensions +{ + public static string Explain(this ProviderType providerType) => providerType switch + { + ProviderType.NONE => "The related data is not allowed to be sent to any LLM provider. This means that this data source cannot be used at the moment.", + ProviderType.ANY => "The related data can be sent to any provider, regardless of where it is hosted (cloud or self-hosted).", + ProviderType.SELF_HOSTED => "The related data can be sent to a provider that is hosted by the same organization, either on-premises or locally. Cloud-based providers are not allowed.", + + _ => "Unknown configuration. This data source cannot be used at the moment.", + }; +} \ No newline at end of file