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) {