mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 01:53:36 +00:00
Fixed the transcription provider dialog not loading the stored API key for self-hosted providers other than Ollama
This commit is contained in:
parent
d21e09dd1e
commit
2f120e5fc0
@ -199,17 +199,9 @@ public partial class TranscriptionProviderDialog : MSGComponentBase, ISecretId
|
||||
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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user