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

utils.ai.CreateTranscription (minor update) Add Response Format inspe… #231

Merged

Conversation

DavidDurman
Copy link
Member

@DavidDurman DavidDurman commented Oct 15, 2024

…ctor field

image

@@ -23,7 +23,7 @@ module.exports = {
knownLength: fileInfo.length
});
formData.append('model', context.config.CreateTranscriptionModel || 'whisper-1');
formData.append('response_format', 'json');
formData.append('response_format', responseFormat || 'text');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json response type is not supported anymore? it's a breaking change then. Unless the json response was a faulty response type and component wasn't working anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a breaking change. The output of the component goes to text no matter what the format is. See the change in the line below from:

context.sendJson(data, 'out');

to:

context.sendJson({ text: data }, 'out');

@vtalas vtalas merged commit 2d5ab34 into clientIO:dev Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

utils.ai.CreateTranscription (minor update) Add Response format inspector config field
2 participants