Repository navigation
feat(api): support custom HTTPS providers for external storage - #4374
Conversation
Castiron-Internal-PR: openai/openai-python-internal#474 Castiron-Source-SHA: b9009dccd368a0d9f1f2f27e31f30975801766c4 Castiron-Public-Base-SHA: 7adbcba
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Approved after a comprehensive static review and an independent second review. Checked custom-provider discriminated unions, creation-only secret handling and repr suppression, minimal audit events, and stable/beta synchronous/asynchronous HTTP and WebSocket routing, including parse/stream helper forwarding. The complete tree matches the previously reviewed internal implementation. The expanded provider-union compatibility impact is documented. No actionable findings. Hosted CI is still running; no local code or tests were executed.
Automated Release PR --- ## [3.64.0](v3.63.0...v3.64.0) (2026-12-05) ### ⚠ BREAKING CHANGES * **api:** Type checkers can flag direct `provider.region` access even for bucket-only callers. At runtime, reading it on a custom endpoint raises `AttributeError`. Check `provider.type != "custom_endpoint"` first. ([#4374](#4374)) ### Features * **api:** add memory and history to beta agents ([#4372](#4372)) ([cc52701](cc52701)) * **api:** add model and token category to organization costs ([#4365](#4365)) ([43b6ff6](43b6ff6)) * **api:** add project API key status filters ([#4371](#4371)) ([7adbcba](7adbcba)) * **api:** support custom HTTPS providers for external storage ([#4374](#4374)) ([dfed070](dfed070)) ### Bug Fixes * **streaming:** omit payloads from invalid delta errors ([#4375](#4375)) ([ba6e577](ba6e577)) ### Chores * **api:** clarify agent session deletion ([#4368](#4368)) ([8f651c7](8f651c7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
External Storage now supports custom HTTPS endpoints. Cloud bucket responses include a provider region. Custom endpoint responses omit it.
Changes
provider.type != 'custom_endpoint'before accessingprovider.region. Static type checkers can flag direct access on the expanded provider union.storage_routingwith arouting_keywhen creating, parsing, or streaming a response.