Stop sending prompt to Whisper transcription
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user