Resolved warnings regarding redundant switch arms (#302)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-02-27 08:42:51 +01:00
1 parent 0c4b94c527
commit ccac2b04ac
3 files changed
+1 -10

No files matched your search

@@ -15,19 +15,11 @@ public static class HostExtensions
public static string BaseURL(this Host host) => host switch
{
Host.LM_STUDIO => "/v1/",
Host.LLAMACPP => "/v1/",
Host.OLLAMA => "/v1/",
_ => "/v1/",
};
public static string ChatURL(this Host host) => host switch
{
Host.LM_STUDIO => "chat/completions",
Host.LLAMACPP => "chat/completions",
Host.OLLAMA => "chat/completions",
_ => "chat/completions",
};