Skip to content

The timestamp_granularities attribute is not properly getting passed to the server (Audio transcriptions) #253

@ben5516

Description

@ben5516

The below example is broken:

response = client.audio.transcriptions.create(
        model:                    "whisper-1",
        file:                     File.open(mp3_filepath.to_s, "rb"),
        response_format:          :verbose_json,
        timestamp_granularities:  [ :word, :segment ],
        language:                 "en"
 )

The response does not include the list of words and their timestamps. This is because timestamp_granularities is not getting properly encoded. I've created a working, corresponding fix to this issue here #249

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions