openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Improve behaviour for read timeouts

Open RobertCraigie opened this issue 2 years ago • 0 comments

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

  • [X] This is an issue with the Python library

Describe the bug

The fix for https://github.com/openai/openai-python/issues/769 involved adding retries for httpx.ReadTimeout exceptions which works but as the default timeout is 10 minutes, this can quickly rack up time spent in API requests.

We should figure out a better solution here.

To Reproduce

N/A

Code snippets

No response

OS

N/A

Python version

N/A

Library version

v1.2.4

RobertCraigie avatar Nov 13 '23 19:11 RobertCraigie