Skip to content

Audio API Resource is Missing Timeout Handling #528

@TedTimbrell

Description

@TedTimbrell

Describe the feature or improvement you're requesting

Audio transcription can be time intensive (and in my case also somewhat time critical). In certain cases the OpenAI API is taking 20+ seconds to process audio and with the currently library we have no way of timing out the call, potentially leaving a worker or thread hanging until resolved ungracefully (such as an overall network response timeout or worker timeout). As is this forces users to either reimplement the call in requests to get access to network timeouts or re-implement the timeout logic on top of this method call via threads or subprocesses.

Additional context

No response

Metadata

Metadata

Labels

bugSomething isn't workingfixed in v1Issues addressed by the v1 beta

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions