openai / openai-python

The official Python library for the OpenAI API
https://pypi.org/project/openai/
Apache License 2.0
23.16k stars 3.27k forks source link

duration type in TranscriptionVerbose #1785

Open viewee-ohm opened 1 month ago

viewee-ohm commented 1 month ago

Confirm this is an issue with the Python library and not an underlying OpenAI API

Describe the bug

image

in pyantic model duration is set to str

but the example in api it returns float type

To Reproduce

openai_client.audio.transcriptions.create

Code snippets

No response

OS

macOS

Python version

Python 3.10.15

Library version

1.51.0