fix provider
This commit is contained in:
parent
fff2ca2523
commit
c03ddfe59f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue