From d7b922219e65f75b1a6a1b4605c0e77298c708a2 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 16 Sep 2026 18:43:01 +0200 Subject: [PATCH] Added the optional API key to every self-hosted host --- app/MindWork AI Studio/Provider/LLMProvidersExtensions.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Provider/LLMProvidersExtensions.cs b/app/MindWork AI Studio/Provider/LLMProvidersExtensions.cs index 9e8b2745..a7992cb2 100644 --- a/app/MindWork AI Studio/Provider/LLMProvidersExtensions.cs +++ b/app/MindWork AI Studio/Provider/LLMProvidersExtensions.cs @@ -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, };