mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 11:12:55 +00:00
Renamed V_LLM
to VLLM
This commit is contained in:
parent
6375ba3054
commit
29e30265df
@ -164,7 +164,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
|
||||
//
|
||||
// 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 base.OnInitializedAsync();
|
||||
|
@ -285,7 +285,7 @@ public static class LLMProvidersExtensions
|
||||
LLMProviders.GWDG => 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,
|
||||
};
|
||||
@ -322,7 +322,7 @@ public static class LLMProvidersExtensions
|
||||
|
||||
case Host.OLLAMA:
|
||||
case Host.LM_STUDIO:
|
||||
case Host.V_LLM:
|
||||
case Host.VLLM:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ public enum Host
|
||||
LM_STUDIO,
|
||||
LLAMACPP,
|
||||
OLLAMA,
|
||||
V_LLM,
|
||||
VLLM,
|
||||
}
|
@ -9,7 +9,7 @@ public static class HostExtensions
|
||||
Host.LM_STUDIO => "LM Studio",
|
||||
Host.LLAMACPP => "llama.cpp",
|
||||
Host.OLLAMA => "ollama",
|
||||
Host.V_LLM => "vLLM",
|
||||
Host.VLLM => "vLLM",
|
||||
|
||||
_ => "Unknown",
|
||||
};
|
||||
@ -30,7 +30,7 @@ public static class HostExtensions
|
||||
{
|
||||
case Host.LM_STUDIO:
|
||||
case Host.OLLAMA:
|
||||
case Host.V_LLM:
|
||||
case Host.VLLM:
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
@ -100,7 +100,7 @@ public sealed class ProviderSelfHosted(ILogger logger, Host host, string hostnam
|
||||
|
||||
case Host.LM_STUDIO:
|
||||
case Host.OLLAMA:
|
||||
case Host.V_LLM:
|
||||
case Host.VLLM:
|
||||
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.OLLAMA:
|
||||
case Host.V_LLM:
|
||||
case Host.VLLM:
|
||||
return await this.LoadModels([], ["embed"], token, apiKeyProvisional);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user