返回全部动态

OpenAI Python SDK v3.0.0 发布,默认迁移至 HTTPX2

原标题:v3.0.0

OpenAI Python SDK Releases一手来源API 更新质量 76

AI 摘要

OpenAI Python SDK 发布 v3.0.0 版本,默认使用 HTTPX2 作为 HTTP 客户端,不再自动安装 httpx。使用自定义 HTTPX 客户端、传输或配置的应用程序需迁移至 HTTPX2 等效配置,或使用临时运行时兼容方案。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

## [3.0.0](https://github.com/openai/openai-python/compare/v2.54.0...v3.0.0) (2026-08-12) ### ⚠ BREAKING CHANGES * **api:** HTTPX2 is now the default HTTP client, and `httpx` is no longer installed automatically. Applications using custom HTTPX clients, transports, or configuration objects must migrate to their HTTPX2 equivalents or use the temporary, runtime-only legacy HTTPX escape hatch. See the [HTTPX2 migration guide](https://github.com/openai/openai-python/blob/main/httpx2.md). ### Fea


发布时间:2026-08-12 09:54
抓取时间:2026-08-12 09:55
来源机构:OpenAI
阅读原文github.com