Skip to content

timeout not being respected by client.beta.threads.runs.create_and_poll (or .OpenAI) #1855

@Dev63

Description

@Dev63

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

  • This is an issue with the Python library

Describe the bug

Calling client.beta.threads.runs.create_and_poll(..., timeout=2.0) will wait as long as it takes before returning (6s, 5 minutes).

To Reproduce

Call client.beta.threads.runs.create_and_poll(..., timeout=2.0) and observe that it does not timeout.

Code snippets

No response

OS

Windows

Python version

Python 3.9

Library version

openai 1.51.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions