fix: whisper-large-v3-turbo

This commit is contained in:
2026-06-01 22:19:59 +03:00
parent 0a612bcc72
commit 8f62f88bb7
+1 -1
View File
@@ -29,7 +29,7 @@ app.post('/api/whisper', upload.single('audio'), async (req, res) => {
if (!req.file) return res.status(400).json({ error: 'No audio file' });
const form = new FormData();
form.append('file', new Blob([req.file.buffer], { type: req.file.mimetype }), 'audio.webm');
form.append('model', 'whisper-large-v3');
form.append('model', 'whisper-large-v3-turbo');
const r = await fetch(`${API_BASE}/v1/audio/transcriptions`, {
method: 'POST', headers: { Authorization: `Bearer ${API_KEY}` }, body: form,
});