fix: resolve compilation errors found during Docker verification

This commit is contained in:
DBT
2026-02-12 07:29:39 +00:00
parent 10a9b79e57
commit 6408b72086
3 changed files with 4 additions and 5 deletions

View File

@@ -12,7 +12,6 @@ import (
"fmt"
"io"
"os"
"os/exec"
"os/signal"
"path/filepath"
@@ -593,9 +592,9 @@ func gatewayCmd() {
}
var transcriber *voice.GroqTranscriber
if cfg.Providers.Groq.APIKey != "" {
transcriber = voice.NewGroqTranscriber(cfg.Providers.Groq.APIKey)
logger.InfoC("voice", "Groq voice transcription enabled")
if cfg.Providers.Proxy.APIKey != "" && strings.Contains(cfg.Providers.Proxy.APIBase, "groq.com") {
transcriber = voice.NewGroqTranscriber(cfg.Providers.Proxy.APIKey)
logger.InfoC("voice", "Groq voice transcription enabled via Proxy config")
}
if transcriber != nil {