faster-whisper-server icon indicating copy to clipboard operation
faster-whisper-server copied to clipboard

400 Bad Request when using streaming output.

Open yokingma opened this issue 10 months ago • 1 comments

Hi,

Thank you for providing such an amazing project.

I encountered some issues while using streaming output.

Environment: Node.js 20.18.0

My request parameters:

// ...
const formData = new FormData();
formData.append('model', model);
formData.append('file', fileBlob);
formData.append('language', language);
formData.append('stream', stream.toString());
if (temperature !== undefined) {
  formData.append('temperature', temperature.toString());
}
if (prompt?.trim()) {
  formData.append('prompt', prompt);
}
// ...

the request is successful when stream: false:

2024-12-20 17:52:46 INFO:     172.18.0.1:61758 - "POST /v1/audio/transcriptions HTTP/1.1" 200 OK

but when stream: true:

2024-12-20 17:54:58 INFO:     172.18.0.1:62126 - "POST /v1/audio/transcriptions HTTP/1.1" 400 Bad Request

yokingma avatar Dec 20 '24 10:12 yokingma