From 3e26c37db115aac9ceeda85364b9517fff2b563e Mon Sep 17 00:00:00 2001 From: Huaaudio Date: Mon, 23 Mar 2026 15:20:56 +0100 Subject: [PATCH] fix provider --- pkg/asr/asr.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/asr/asr.go b/pkg/asr/asr.go index 7b43f317f..2d607fec4 100644 --- a/pkg/asr/asr.go +++ b/pkg/asr/asr.go @@ -54,15 +54,11 @@ func DetectTranscriber(cfg *config.Config) Transcriber { } } - // Direct Groq provider config takes priority. - if key := cfg.Providers.Groq.APIKey; key != "" { - return NewGroqTranscriber(key) - } // Fall back to any model-list entry that uses the groq/ protocol or is explicitly named groq. for _, mc := range cfg.ModelList { if (strings.HasPrefix(mc.Model, "groq/") || mc.ModelName == "groq" || mc.Model == "whisper-large-v3-turbo") && - mc.APIKey != "" { - return NewGroqTranscriber(mc.APIKey) + mc.APIKey() != "" { + return NewGroqTranscriber(mc.APIKey()) } } return nil