We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://platform.openai.com/docs/api-reference/audio/createTranscription this page suggests that stream: true works for the 2 new models gpt-4o-mini-transcribe and gpt-4o-transcribe, however the behavior is not as expected on the page.
import fs from "fs"; import OpenAI from "openai"; const openai = new OpenAI(); const stream = await openai.audio.transcriptions.create({ file: fs.createReadStream("audio.mp3"), model: "gpt-4o-mini-transcribe", stream: true, }); for await (const event of stream) { console.log(event); }
This is valid code. However, the "event" variable will output one letter at a time rather than what the API Reference suggests (a full JSON object)
Looking at the SDK the response does not look like it is being sent to ResponseStream correctly.
Thank you.
const stream = await openai.audio.transcriptions.create({ file: fs.createReadStream("./audio.mp3"), model: "gpt-4o-transcribe", language: 'en', stream: true, response_format: 'json', }); for await (const event of stream) { console.log(event); }
Windows
20.12.0
v4.89.0
The text was updated successfully, but these errors were encountered:
Just gave it a shot and it is running just fine on version 4.92.1, even returning it as a json
Sorry, something went wrong.
No branches or pull requests
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
https://platform.openai.com/docs/api-reference/audio/createTranscription this page suggests that stream: true works for the 2 new models gpt-4o-mini-transcribe and gpt-4o-transcribe, however the behavior is not as expected on the page.
This is valid code. However, the "event" variable will output one letter at a time rather than what the API Reference suggests (a full JSON object)
Looking at the SDK the response does not look like it is being sent to ResponseStream correctly.
Thank you.
To Reproduce
OS
Windows
Node version
20.12.0
Library version
v4.89.0
The text was updated successfully, but these errors were encountered: