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:
co-authored by
Claude Sonnet 4.6
parent
79eda71c5a
commit
2bdbde50f5
@@ -88,7 +88,10 @@ class MediaTranscriber
|
|||||||
$ch = curl_init($whisperUrl);
|
$ch = curl_init($whisperUrl);
|
||||||
$opts = [
|
$opts = [
|
||||||
CURLOPT_POST => true,
|
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_RETURNTRANSFER => true,
|
||||||
CURLOPT_TIMEOUT => 120,
|
CURLOPT_TIMEOUT => 120,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user