Stop sending prompt to Whisper transcription
Some checks failed
CI / test (push) Failing after 8s
Build and Deploy / build-and-deploy (push) Successful in 24s

This commit is contained in:
Grendgi
2026-06-10 11:30:08 +03:00
parent bde56978d6
commit ae1802dab9
3 changed files with 6 additions and 5 deletions

View File

@@ -112,9 +112,6 @@ func New(baseURL string, timeout time.Duration, ffmpegPath string, leadSilence t
func NewWithOptions(opts Options) *Client {
audioPrompt := strings.TrimSpace(opts.AudioPrompt)
if audioPrompt == "" {
audioPrompt = "Transcribe the audio exactly. Return only the transcript text."
}
provider := buildAudioProvider(opts, audioPrompt)
if provider.BaseURL == "" {
return nil