fix: add response_format=json to self-hosted Whisper request

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-05 20:39:13 -05:00
co-authored by Claude Sonnet 4.6
parent 79eda71c5a
commit 2bdbde50f5
+4 -1
View File
@@ -88,7 +88,10 @@ class MediaTranscriber
$ch = curl_init($whisperUrl);
$opts = [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => ['audio_file' => new CURLFile($tmpFile, $mime, 'audio.' . $ext)],
CURLOPT_POSTFIELDS => [
'audio_file' => new CURLFile($tmpFile, $mime, 'audio.' . $ext),
'response_format' => 'json',
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
];