Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Bad Request when using streaming output. #183

Open
yokingma opened this issue Dec 20, 2024 · 0 comments
Open

400 Bad Request when using streaming output. #183

yokingma opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yokingma
Copy link

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
@fedirz fedirz added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants