Renamed V_LLM to VLLM

This commit is contained in:
Thorsten Sommer 2025-08-10 16:08:19 +02:00
parent 6375ba3054
commit 29e30265df
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
5 changed files with 8 additions and 8 deletions

View File

@ -164,7 +164,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
// //
// We cannot load the API key for self-hosted providers: // We cannot load the API key for self-hosted providers:
// //
if (this.DataLLMProvider is LLMProviders.SELF_HOSTED && this.DataHost is not Host.OLLAMA && this.DataHost is not Host.V_LLM) if (this.DataLLMProvider is LLMProviders.SELF_HOSTED && this.DataHost is not Host.OLLAMA && this.DataHost is not Host.VLLM)
{ {
await this.ReloadModels(); await this.ReloadModels();
await base.OnInitializedAsync(); await base.OnInitializedAsync();

View File

@ -285,7 +285,7 @@ public static class LLMProvidersExtensions
LLMProviders.GWDG => true, LLMProviders.GWDG => true,
LLMProviders.HUGGINGFACE => true, LLMProviders.HUGGINGFACE => true,
LLMProviders.SELF_HOSTED => host is (Host.OLLAMA or Host.V_LLM), LLMProviders.SELF_HOSTED => host is (Host.OLLAMA or Host.VLLM),
_ => false, _ => false,
}; };
@ -322,7 +322,7 @@ public static class LLMProvidersExtensions
case Host.OLLAMA: case Host.OLLAMA:
case Host.LM_STUDIO: case Host.LM_STUDIO:
case Host.V_LLM: case Host.VLLM:
return true; return true;
} }
} }

View File

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

View File

@ -9,7 +9,7 @@ public static class HostExtensions
Host.LM_STUDIO => "LM Studio", Host.LM_STUDIO => "LM Studio",
Host.LLAMACPP => "llama.cpp", Host.LLAMACPP => "llama.cpp",
Host.OLLAMA => "ollama", Host.OLLAMA => "ollama",
Host.V_LLM => "vLLM", Host.VLLM => "vLLM",
_ => "Unknown", _ => "Unknown",
}; };
@ -30,7 +30,7 @@ public static class HostExtensions
{ {
case Host.LM_STUDIO: case Host.LM_STUDIO:
case Host.OLLAMA: case Host.OLLAMA:
case Host.V_LLM: case Host.VLLM:
return true; return true;
default: default:

View File

@ -100,7 +100,7 @@ public sealed class ProviderSelfHosted(ILogger logger, Host host, string hostnam
case Host.LM_STUDIO: case Host.LM_STUDIO:
case Host.OLLAMA: case Host.OLLAMA:
case Host.V_LLM: case Host.VLLM:
return await this.LoadModels(["embed"], [], token, apiKeyProvisional); return await this.LoadModels(["embed"], [], token, apiKeyProvisional);
} }
@ -127,7 +127,7 @@ public sealed class ProviderSelfHosted(ILogger logger, Host host, string hostnam
{ {
case Host.LM_STUDIO: case Host.LM_STUDIO:
case Host.OLLAMA: case Host.OLLAMA:
case Host.V_LLM: case Host.VLLM:
return await this.LoadModels([], ["embed"], token, apiKeyProvisional); return await this.LoadModels([], ["embed"], token, apiKeyProvisional);
} }