Skip to content
New issue

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

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

Already on GitHub? # to your account

JSON::ParserError with different response_format - Whisper #277

Open
felipeequaresma opened this issue Jun 12, 2023 · 1 comment
Open

JSON::ParserError with different response_format - Whisper #277

felipeequaresma opened this issue Jun 12, 2023 · 1 comment

Comments

@felipeequaresma
Copy link

felipeequaresma commented Jun 12, 2023

Describe the bug
Whisper supports a few different response types like json, text, art, verbose json or vtt, when you set vtt for example it can't parse to json.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the terminal and to execute:
OpenAI::Client.new.transcribe(
        parameters: {
            model: 'whisper-1',
            file:  'your_file_path',
            response_format: 'vtt'
        })
  1. See error

Expected behavior
response in all formats available for openAI

@mrmattnewell
Copy link

Same issue,

JSON::ParserError: unexpected token at 'WEBVTT

When I request response_format: "vtt"

This 100% used to work in previous versions of this gem.

qoosuperman added a commit to qoosuperman/ruby-openai that referenced this issue Oct 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants