docs: clarify image transparency and Realtime audio delta behavior - #918
Conversation
Castiron-Internal-PR: openai/openai-java-internal#39 Castiron-Source-SHA: 37b2a4c67995c79e6d3dd56876352e9eb9ec75e9 Castiron-Public-Base-SHA: ca9c11d
Castiron custom code✅ No new custom-code files detected. 61 mixed files remain; 0 existing customizations changed. Compared 61 existing customizations unchanged
21 more in the full report. 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 32429412339 --repo openai/openai-java \
--name castiron-custom-code-32429412339-1 --dir /tmp/castiron-custom-code-32429412339-1
git apply --stat /tmp/castiron-custom-code-32429412339-1/custom-code.patch
cat /tmp/castiron-custom-code-32429412339-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin ca9c11dd90be5b10b67797a0af6e575ce776bb6a ddfcc6c1deff03bb6866fcfc3248e00ffc849bcc
python3 scripts/castiron/custom_code_report.py report \
--base ca9c11dd90be5b10b67797a0af6e575ce776bb6a \
--head ddfcc6c1deff03bb6866fcfc3248e00ffc849bcc --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-ddfcc6c1deff
cat /tmp/castiron-custom-code-ddfcc6c1deff/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. |
jbeckwith-oai
left a comment
There was a problem hiding this comment.
The updated description removes the existing parameter-level restriction that background is supported only for GPT Image models. It now limits only transparent backgrounds, incorrectly implying dall-e-2 / dall-e-3 accept background: "opaque" or "auto". Restore the explicit GPT-Image-only restriction in the canonical OpenAPI description while retaining the new transparency preview and PNG/WebP guidance, then regenerate.
| /** | ||
| * Allows to set transparency for the background of the generated image(s). This parameter is | ||
| * only supported for GPT image models that support transparent backgrounds. Must be one of | ||
| * Allows to set transparency for the background of the generated image(s). Must be one of |
There was a problem hiding this comment.
The updated description removes the existing parameter-level restriction that background is supported only for GPT Image models. It now limits only transparent backgrounds, incorrectly implying dall-e-2 / dall-e-3 accept background: "opaque" or "auto". Restore the explicit GPT-Image-only restriction in the canonical OpenAPI description while retaining the new transparency preview and PNG/WebP guidance, then regenerate.
Summary
Updates Java SDK documentation to note that transparent backgrounds are in preview for gpt-image-2 and gpt-image-2-2026-04-21, with png or webp required for transparent output. Also clarifies that Realtime translation audio deltas contain variable-length PCM16 chunks that clients should decode and queue in full. No API signatures or runtime behavior change.