Renamed LLAMA_CPP enum value

This commit is contained in:
Thorsten Sommer 2026-01-07 15:28:44 +01:00
parent cca25d33b7
commit 21ceb70fd7
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
6 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@
{
@GetLLMProviderModelName(context)
}
else if (context.UsedLLMProvider is LLMProviders.SELF_HOSTED && context.Host is not Host.LLAMACPP)
else if (context.UsedLLMProvider is LLMProviders.SELF_HOSTED && context.Host is not Host.LLAMA_CPP)
{
@GetLLMProviderModelName(context)
}

View File

@ -338,7 +338,7 @@ public static class LLMProvidersExtensions
switch (host)
{
case Host.NONE:
case Host.LLAMACPP:
case Host.LLAMA_CPP:
default:
return false;

View File

@ -5,7 +5,7 @@ public enum Host
NONE,
LM_STUDIO,
LLAMACPP,
LLAMA_CPP,
OLLAMA,
VLLM,
}

View File

@ -7,7 +7,7 @@ public static class HostExtensions
Host.NONE => "None",
Host.LM_STUDIO => "LM Studio",
Host.LLAMACPP => "llama.cpp",
Host.LLAMA_CPP => "llama.cpp",
Host.OLLAMA => "ollama",
Host.VLLM => "vLLM",
@ -34,7 +34,7 @@ public static class HostExtensions
return true;
default:
case Host.LLAMACPP:
case Host.LLAMA_CPP:
return false;
}
}

View File

@ -91,7 +91,7 @@ public sealed class ProviderSelfHosted(Host host, string hostname) : BaseProvide
{
switch (host)
{
case Host.LLAMACPP:
case Host.LLAMA_CPP:
// Right now, llama.cpp only supports one model.
// There is no API to list the model(s).
return [ new Provider.Model("as configured by llama.cpp", null) ];

View File

@ -70,7 +70,7 @@ public sealed class ProviderValidation
public string? ValidatingModel(Model model)
{
if(this.GetProvider() is LLMProviders.SELF_HOSTED && this.GetHost() == Host.LLAMACPP)
if(this.GetProvider() is LLMProviders.SELF_HOSTED && this.GetHost() == Host.LLAMA_CPP)
return null;
if (model == default)