aallam / openai-kotlin

OpenAI API client for Kotlin with multiplatform and coroutines capabilities.
MIT License
1.5k stars 180 forks source link

Add timestamp_granularities #311

Closed mxwell closed 7 months ago

mxwell commented 8 months ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue no

Describe your change

The transcription requests got a new parameter timestamp_granularities recently (added to openai-python a month ago), which allows to get word timestamps. These changes add support for the parameter and for the corresponding words field in the response.

I've tested the correctness with a new test using API key (but excluded all other tests to save quota).

What problem is this fixing?

Lack of support for word timestamps in transcriptions.

aallam commented 7 months ago

Thank you for your contribution!