From 2f120e5fc067b98b72ae1df46941e04cab04fabd Mon Sep 17 00:00:00 2001 From: Dominic Neuburg Date: Fri, 11 Sep 2026 17:06:28 +0200 Subject: [PATCH] Fixed the transcription provider dialog not loading the stored API key for self-hosted providers other than Ollama --- .../Dialogs/TranscriptionProviderDialog.razor.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/TranscriptionProviderDialog.razor.cs b/app/MindWork AI Studio/Dialogs/TranscriptionProviderDialog.razor.cs index b596fcdd7..872d45bc3 100644 --- a/app/MindWork AI Studio/Dialogs/TranscriptionProviderDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/TranscriptionProviderDialog.razor.cs @@ -198,18 +198,10 @@ protected override async Task OnInitializedAsync() // When using self-hosted models, we must copy the model name: if (this.DataLLMProvider is LLMProviders.SELF_HOSTED) this.dataManuallyModel = this.DataModel.Id; - - // - // We cannot load the API key for self-hosted providers: - // - if (this.DataLLMProvider is LLMProviders.SELF_HOSTED && this.DataHost is not Host.OLLAMA) - { - await this.ReloadModels(); - await base.OnInitializedAsync(); - return; - } - - // Load the API key: + + // Load the API key. Self-hosted providers may or may not need one (e.g., VLLM behind + // an authenticated proxy does), so we always try -- ReloadModels() below relies on + // dataAPIKey already being populated, otherwise it would send an empty Bearer token: var requestedSecret = await this.RustService.GetAPIKey(this, SecretStoreType.TRANSCRIPTION_PROVIDER, isTrying: this.DataLLMProvider is LLMProviders.SELF_HOSTED); if (requestedSecret.Success) {