Skip to content

timeout param is not handled correctly, resulting in no timeout being set #675

@ilyastam

Description

@ilyastam

Describe the bug

Passing a timeout to openai.ChatCompletion.create doesn't do anything. Likely due to he incorrect logic here: https://github.com/openai/openai-python/blob/main/openai/api_resources/abstract/engine_api_resource.py#L101
If pass 3, according to this I will have no timeout.

To Reproduce

call a completion api with a small timeout

Code snippets

No response

OS

any

Python version

any

Library version

v0.28.1

Metadata

Metadata

Assignees

No one assigned

    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