diff --git a/app/MindWork AI Studio/Provider/SelfHosted/HostExtensions.cs b/app/MindWork AI Studio/Provider/SelfHosted/HostExtensions.cs index 1075009e..ada7920b 100644 --- a/app/MindWork AI Studio/Provider/SelfHosted/HostExtensions.cs +++ b/app/MindWork AI Studio/Provider/SelfHosted/HostExtensions.cs @@ -30,4 +30,18 @@ public static class HostExtensions _ => "chat/completions", }; + + public static bool AreEmbeddingsSupported(this Host host) + { + switch (host) + { + case Host.LM_STUDIO: + case Host.OLLAMA: + return true; + + default: + case Host.LLAMACPP: + return false; + } + } } \ No newline at end of file