Improve behaviour for read timeouts
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
首先檢視 issue #769 中描述的重試變更,以及 Python 函式庫對 httpx.ReadTimeout 的處理方式。將該行為與 10 分鐘的預設逾時進行比較,並確定一項具體且可測試的改進。完成的標準是:發生讀取逾時的請求不再累積過多的重試時間,同時保留預期的重試行為。
由索引模型根據 Issue 內容生成。
描述
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
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
- 主要語言
- Python
- 星號
- 32.2k
- 分支
- 5.8k
- 平均合併
- 12 小時 29 分鐘
- 30 天內合併 PR
- 112
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
openai/openai-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
openai/openai-python#4338 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
openai/openai-python#4337 ·
維護者通常 1 天內回覆
-
`BaseClient._prepare_url()` corrupts relative endpoint URLs when `base_url` contains query parameters可能已有人在做 @Rewaskc02-lang 於 2 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
openai/openai-python#4311 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
openai/openai-python#4310 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
openai/openai-python#4309 · 1 則留言 ·
維護者通常 1 天內回覆
查看 openai/openai-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 86/100
bad-antics/lateralus-lang#1140 ·
維護者通常 4 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 3 天內回覆
-
fixture good first issue help wanted vendor:cisco
難度 1/5 1-3 小時 新手友好度 85/100