mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:19:47 +00:00
Added embedding metadata to hosts
This commit is contained in:
parent
4a9c2e3a76
commit
762d68f17d
@ -30,4 +30,18 @@ public static class HostExtensions
|
|||||||
|
|
||||||
_ => "chat/completions",
|
_ => "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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user