Added embedding metadata to hosts

This commit is contained in:
Thorsten Sommer 2024-12-03 13:39:25 +01:00
parent 4a9c2e3a76
commit 762d68f17d
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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;
}
}
}