Repository navigation
feat(api): add response error diagnostics and model notices - #4086
Conversation
Castiron-Internal-PR: openai/openai-python-internal#261 Castiron-Source-SHA: 27fa0894b83242b082ad4fc0487e5e8cc151f190 Castiron-Public-Base-SHA: 70d4738
Castiron custom codeEvaluated main: ✅ No new custom-code files detected. 40 mixed files remain; 0 existing customizations changed. Compared 40 existing customizations unchanged
A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 38688175961 --repo openai/openai-python \
--name castiron-custom-code-38688175961-1 --dir /tmp/castiron-custom-code-38688175961-1
git apply --stat /tmp/castiron-custom-code-38688175961-1/custom-code.patch
cat /tmp/castiron-custom-code-38688175961-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 70d473892f7c427a02a3b566add9c86072842e25 8e3cd4a1a0483e22b3cfa00f469e48769ea4a57c
python3 scripts/castiron/custom_code_report.py report \
--base 70d473892f7c427a02a3b566add9c86072842e25 \
--head 8e3cd4a1a0483e22b3cfa00f469e48769ea4a57c --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-8e3cd4a1a048
cat /tmp/castiron-custom-code-8e3cd4a1a048/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Codex Review SummaryThis 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. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Automated source review of 8e3cd4a1a0483e22b3cfa00f469e48769ea4a57c: no blocking findings.
The stable Responses, beta Responses, and video error models expose optional, nullable type and param fields while preserving code and message. The model notices keep the existing identifiers available. The new transport test covers all three APIs with populated, null, and omitted diagnostics in both sync and async clients. The change needs no new runtime helper or parsing path.
Verified hosted checks on this head passed: lint, build, Python 3.10 and 3.14 tests, HTTPX2 tests, and Castiron baseline and budget checks. I reviewed the source and tests without running local project workloads.
Automated Release PR --- ## [3.32.0](openai/openai-python@v3.31.0...v3.32.0) (2026-10-16) ### Features * **api:** add cache settings and key options [2/2] ([openai#4087](openai#4087)) ([325da45](openai@325da45)) * **api:** add prompt-based voice creation ([openai#4091](openai#4091)) ([2e39db7](openai@2e39db7)) * **api:** add regional processing residency options ([openai#4081](openai#4081)) ([21ce0c2](openai@21ce0c2)) * **api:** add response error diagnostics and model notices ([openai#4086](openai#4086)) ([e71d781](openai@e71d781)) * **api:** support audio fixture playback in Live sessions ([openai#4085](openai#4085)) ([9998c1a](openai@9998c1a)) * **api:** support Decisions in Live sessions ([openai#4088](openai#4088)) ([230a923](openai@230a923)) ### Bug Fixes * **api:** declare Realtime response error messages ([openai#4083](openai#4083)) ([95dbee9](openai@95dbee9)) ### Chores * **api:** clarify Decisions request and response fields ([openai#4079](openai#4079)) ([d42accb](openai@d42accb)) ### Refactors * share WebSocket connection handling ([openai#4084](openai#4084)) ([70d4738](openai@70d4738)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Summary
Expose optional response error diagnostics and add model shutdown notices.
Changes