Skip to content

Conversation

@RobertCraigie
Copy link
Collaborator

@RobertCraigie RobertCraigie commented Sep 27, 2024

No description provided.

@RobertCraigie RobertCraigie changed the title Robert/fix audio types fix(client): correct types for transcriptions / translations Sep 27, 2024
@RobertCraigie RobertCraigie marked this pull request as ready for review September 27, 2024 22:49
@RobertCraigie RobertCraigie requested a review from a team as a code owner September 27, 2024 22:49
@RobertCraigie RobertCraigie changed the title fix(client): correct types for transcriptions / translations fix(audio): correct types for transcriptions / translations Sep 27, 2024
@RobertCraigie RobertCraigie merged commit 0aa66ae into next Sep 27, 2024
@RobertCraigie RobertCraigie deleted the robert/fix-audio-types branch September 27, 2024 22:51
@stainless-app stainless-app bot mentioned this pull request Sep 27, 2024


class TranscriptionVerbose(BaseModel):
duration: str

Choose a reason for hiding this comment

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

Shouldn't this be float ? See Pydantic warning:

...CENSORED.../lib/python3.12/site-packages/pydantic/main.py:390: UserWarning: Pydantic serializer warnings: Expected `str` but got `float` with value `118.2699966430664` - serialized value may not be as expected return self.__pydantic_serializer__.to_python( 
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, opened an OpenAPI PR openai/openai-openapi#338

cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants