Skip to content

feat(api): support custom HTTPS providers for external storage - #4374

Merged
yoni-oai merged 1 commit into
mainfrom
castiron/promotions/pr-474
Dec 4, 2026
Merged

yoni-oai merged 1 commit into
mainfrom
castiron/promotions/pr-474

Conversation

@yoni-oai

@yoni-oai yoni-oai commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

External Storage now supports custom HTTPS endpoints. Cloud bucket responses include a provider region. Custom endpoint responses omit it.

Changes

  • Check provider.type != 'custom_endpoint' before accessing provider.region. Static type checkers can flag direct access on the expanded provider union.
  • Pass storage_routing with a routing_key when creating, parsing, or streaming a response.
  • Save the signing secret returned when registering a custom endpoint. Later reads return a signing secret hint.
BEGIN_COMMIT_OVERRIDE
feat(api): support custom HTTPS providers for external storage (#4374)

BREAKING CHANGE: 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)
Release-As: 3.64.0
END_COMMIT_OVERRIDE

Castiron-Internal-PR: openai/openai-python-internal#474
Castiron-Source-SHA: b9009dccd368a0d9f1f2f27e31f30975801766c4
Castiron-Public-Base-SHA: 7adbcba
@yoni-oai
yoni-oai requested a review from a team as a code owner December 4, 2026 23:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T23:44:00.438995Z 91819b4 PR opened
🔒 Security Review ✅ Completed 2026-12-04T23:44:34.733862Z 91819b4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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 jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yoni-oai
yoni-oai merged commit dfed070 into main Dec 4, 2026
26 checks passed
@yoni-oai
yoni-oai deleted the castiron/promotions/pr-474 branch December 4, 2026 23:53
@openai-sdks openai-sdks Bot mentioned this pull request Dec 4, 2026
@yoni-oai yoni-oai changed the title feat(api)!: support custom HTTPS providers for external storage feat(api): support custom HTTPS providers for external storage Dec 5, 2026
dpiet-oai pushed a commit that referenced this pull request Dec 5, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants