fix provider

This commit is contained in:
Huaaudio 2026-03-23 15:20:56 +01:00
parent fff2ca2523
commit c03ddfe59f

View file

@ -216,8 +216,8 @@ func DetectTranscriber(cfg *config.Config) Transcriber {
// Fall back to any model-list entry that uses the groq/ protocol. // Fall back to any model-list entry that uses the groq/ protocol.
for _, mc := range cfg.ModelList { for _, mc := range cfg.ModelList {
if (strings.HasPrefix(mc.Model, "groq/") || mc.ModelName == "groq" || mc.Model == "whisper-large-v3-turbo") && if (strings.HasPrefix(mc.Model, "groq/") || mc.ModelName == "groq" || mc.Model == "whisper-large-v3-turbo") &&
mc.APIKey != "" { mc.APIKey() != "" {
return NewGroqTranscriber(mc.APIKey) return NewGroqTranscriber(mc.APIKey())
} }
} }
return nil return nil