Repository navigation
feat(api): add GPT Image 2.5 models and image options - #2705
Conversation
Castiron-Internal-PR: openai/openai-node-internal#106 Castiron-Source-SHA: 74e9659cc099f4e2f5660d7fa4a82017a9ab2f6c Castiron-Public-Base-SHA: 75d14da
Castiron custom code✅ No new custom-code files detected. 32 mixed files remain; 0 existing customizations changed; 4 generated baselines changed. Compared
28 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 34287763045 --repo openai/openai-node \
--name castiron-custom-code-34287763045-1 --dir /tmp/castiron-custom-code-34287763045-1
git apply --stat /tmp/castiron-custom-code-34287763045-1/custom-code.patch
cat /tmp/castiron-custom-code-34287763045-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 75d14da32a6640dacad8d9714f763ffbb9f99dc8 47b13c5207566287318db4d50e0cd766d15f6bbe
python3 scripts/castiron/custom_code_report.py report \
--base 75d14da32a6640dacad8d9714f763ffbb9f99dc8 \
--head 47b13c5207566287318db4d50e0cd766d15f6bbe --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-47b13c520756
cat /tmp/castiron-custom-code-47b13c520756/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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 47b13c5207
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| * The Transceiver `rtc_...` ID of the pending SIP session. The paired | ||
| * `live.call.incoming` event derives its `session_id` by replacing the `rtc_` | ||
| * prefix with `live_`. Use the ID returned by the event with the corresponding | ||
| * Realtime or Live API. |
There was a problem hiding this comment.
Describe the actual
rtc_ to live_ conversion
When a consumer relates a realtime.call.incoming event to its Live session, this JSDoc says an ID such as rtc_479... becomes live_479..., but the newly updated paired example in api_reference/openapi.transformed.yml uses live_u0_479.... Following the documented replacement therefore produces a different session ID; document the actual mapping or avoid claiming that callers can derive it and require the event-provided ID instead.
AGENTS.md reference: AGENTS.md:L72-L74
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed that the prefix-conversion guidance is inconsistent. Callers should use the ID supplied by the corresponding webhook unchanged. This is tracked for a documentation correction; I'd like to address the wording in a follow-up. It is not fixed in this head.
There was a problem hiding this comment.
@jbeckwith-oai could you take another look at the response above? Are you comfortable with taking the documented wording correction as a follow-up, or is there something else you need before re-reviewing?
| - items: | ||
| $ref: '#/components/schemas/InputItem' | ||
| type: array | ||
| maxItems: 131072 |
There was a problem hiding this comment.
Remove the unrelated Responses input cap
For callers constructing a Responses request with more than 131,072 input items, this newly added maxItems changes the canonical contract and causes the repository's schema-validating mock server to reject the request before dispatch. The same undocumented cap was added to stable create/compact and beta create/compact even though this change concerns image models; remove it unless it is an explicitly approved API limit and add the required large-payload boundary coverage if it is intentional.
AGENTS.md reference: AGENTS.md:L124-L133
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
maxItems: 131072 is expected and should remain aligned with the intended Responses API contract. This PR exposes it in the bundled specification; it does not add SDK-side runtime validation. I acknowledge that schema validators now see a constraint the previous bundle omitted. I'd retain it here rather than remove the contract's limit. I am not claiming new boundary-test coverage.
There was a problem hiding this comment.
@jbeckwith-oai could you take another look at the response above? Are you comfortable with retaining the expected 131,072-item API constraint, or is there something else you need before re-reviewing?
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Thanks — the GPT Image 2.5 model aliases, quality values, custom dimensions, and nullable image-call metadata are largely generated as expected, and the current CI is green. I found two blocking regressions on this exact head:
-
The new Live/Realtime webhook guidance gives an invalid deterministic mapping. The example pairs
rtc_479a…withlive_u0_479a…, but the prose says to replace onlyrtc_withlive_, which produceslive_479a…. Please correct the authoritative spec and regenerate, or avoid telling callers to derive this ID and direct them to the event-provided session ID. -
The bundled transformed spec adds
maxItems: 131072to four existing Responses input arrays (stable/beta create, compact, and token-count paths). That is unrelated to this image update and newly makes schema-validating consumers reject shapes that were previously accepted. Please remove this unrelated constraint from this PR unless it is an approved API contract change with the appropriate boundary coverage.
Once these are addressed and regenerated, I am happy to re-review.
|
Thanks Justin — I'd like to propose the following disposition:
CI is complete and green on the unchanged head. @jbeckwith-oai, could you re-review and confirm whether you're comfortable with these follow-ups? The deferred issues are acknowledged, not fixed by this PR. |
Automated Release PR --- ## [7.12.0](openai/openai-node@v7.11.0...v7.12.0) (2026-09-08) ### Features * **api:** add GPT Image 2.5 models and image options ([openai#2705](openai#2705)) ([6500a16](openai@6500a16)) ### Bug Fixes * **assistants:** reject root IDs in run-step deltas ([openai#2698](openai#2698)) ([63dfa4c](openai@63dfa4c)) * **files:** use a monotonic clock for processing timeout ([openai#2657](openai#2657)) ([bb0f51b](openai@bb0f51b)) * preserve suppressed workload authorization ([openai#2699](openai#2699)) ([57bbfd3](openai@57bbfd3)) --- 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>
Automated Release PR --- ## [7.12.1](openai/openai-node@v7.12.0...v7.12.1) (2026-09-09) Includes the GPT Image 2.5 support from 7.12.0, which was not published to npm. ### Features * **api:** add GPT Image 2.5 models and image options ([openai#2705](openai#2705)) ([6500a16](openai@6500a16)) ### Bug Fixes * **ci:** run Cloudflare example regressions before release ([openai#2706](openai#2706)) ([c5cc31c](openai@c5cc31c)) --- 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> Co-authored-by: Marcus Wood <[email protected]>
Adds GPT Image 2.5 Sunburst/Flare aliases and September 8 snapshots,
xhigh/maxquality, and custom image dimensions.qualityandsizeon Responses image calls, includingquality: "auto".