mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:57:59 +00:00
Added the optional API key to every self-hosted host
This commit is contained in:
1 file changed
+5
-1
@@ -491,7 +491,11 @@ public static class LLMProvidersExtensions
|
||||
LLMProviders.GWDG => true,
|
||||
LLMProviders.HUGGINGFACE => true,
|
||||
|
||||
LLMProviders.SELF_HOSTED => host is (Host.OLLAMA or Host.VLLM),
|
||||
// Every self-hosted engine can ask for a key: LM Studio brings its own tokens, and any of
|
||||
// them can sit behind a proxy which authenticates. The field is labeled as optional for
|
||||
// them, so offering it costs nothing where no key is needed, while leaving it out means
|
||||
// the user cannot enter the one their server expects:
|
||||
LLMProviders.SELF_HOSTED => host is not Host.NONE,
|
||||
|
||||
_ => false,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user