Skip to content

chore(api): refresh image model API reference - #115

Merged
apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-36
Aug 20, 2026
Merged

apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-36

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refresh the CLI's transformed OpenAPI snapshot and CastIron generation metadata for the current image-model documentation.

Changes

  • Include the GPT Image 2 model names in the JSON image-editing schema and refresh the Responses image-generation documentation, including the supported chatgpt-image-latest alias.
  • No generated CLI command, flag, public API, or runtime behavior changes.

(manual)

No handwritten SDK changes or merge-conflict resolutions.

Copilot AI lite review requested due to automatic review settings August 20, 2026 17:21
@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Castiron custom code

✅ No new custom-code files detected.

6 mixed files remain; 0 existing customizations changed.

Compared ee92673a416c → 2fd9dc508c99. Generated baselines verified.

6 existing customizations unchanged
  • pkg/cmd/adminorganizationcertificate.go
  • pkg/cmd/adminorganizationcertificate_test.go
  • pkg/cmd/cmd.go
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 32408994782 --repo openai/openai-cli \
  --name castiron-custom-code-32408994782-1 --dir /tmp/castiron-custom-code-32408994782-1
git apply --stat /tmp/castiron-custom-code-32408994782-1/custom-code.patch
cat /tmp/castiron-custom-code-32408994782-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin ee92673a416c0851a5fe8907a2453db7bd450633 2fd9dc508c998c103d4ef6917fed4f8a2b0c318f
python3 scripts/castiron/custom_code_report.py report \
  --base ee92673a416c0851a5fe8907a2453db7bd450633 \
  --head 2fd9dc508c998c103d4ef6917fed4f8a2b0c318f --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-2fd9dc508c99
cat /tmp/castiron-custom-code-2fd9dc508c99/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refreshes the CLI’s transformed OpenAPI snapshot and CastIron generation metadata to reflect current image-model documentation, specifically adding GPT Image 2 model identifiers to the relevant schemas.

Changes:

  • Add gpt-image-2 and gpt-image-2-2026-04-21 to the image editing model enum and clarify the model description.
  • Update image generation tool documentation to include GPT Image 2 model options.
  • Refresh .castiron.stats.yml generation metadata (IDs/hashes) to match the updated snapshot.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
api_reference/openapi.transformed.yml Updates image editing/generation model enums and descriptions to include GPT Image 2 and its dated snapshot.
.castiron.stats.yml Updates CastIron generation identifiers/hashes corresponding to the refreshed OpenAPI snapshot.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@apcha-oai
apcha-oai marked this pull request as ready for review August 20, 2026 17:30
@apcha-oai
apcha-oai requested a review from a team as a code owner August 20, 2026 17:30
@apcha-oai
apcha-oai enabled auto-merge August 20, 2026 17:32

@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.

The newly added exhaustive supported-image-model list omits chatgpt-image-latest, even though the adjacent schema enum and generated SDK model surfaces continue to support it. Please fix the authoritative source description and regenerate the SDK batch so the published documentation accurately lists every supported model.

Comment thread api_reference/openapi.transformed.yml Outdated
The image generation model to use. Default: `gpt-image-1`.
The image generation model to use. One of `gpt-image-1`,
`gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`, or
`gpt-image-2-2026-04-21`. Default: `gpt-image-1`.

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.

[Medium] Include the supported image-model alias in the exhaustive list. The new “One of” description omits chatgpt-image-latest, even though the immediately adjacent enum still lists it as supported. Please add that alias to the authoritative source description and regenerate both stable and beta schema entries so users are not told that a supported model is unavailable.

@apcha-oai
apcha-oai disabled auto-merge August 20, 2026 17:59
Castiron-Internal-PR: openai/openai-cli-internal#36
Castiron-Source-SHA: 5f56368675cd6118548d98eb2515efcc40408376
Castiron-Public-Base-SHA: ee92673
Copilot AI review requested due to automatic review settings August 20, 2026 19:30
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-36 branch from 8be037b to 2fd9dc5 Compare August 20, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@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.

Re-reviewed the regenerated SDK update. The previously missing chatgpt-image-latest alias is now accurately included throughout stable/beta image-model documentation and the transformed schema, with no runtime behavior or public-type changes. Generated provenance and substantive CI check out.

@apcha-oai
apcha-oai added this pull request to the merge queue Aug 20, 2026
Merged via the queue into main with commit a771913 Aug 20, 2026
11 checks passed
@apcha-oai
apcha-oai deleted the castiron/promotions/pr-36 branch August 20, 2026 20:18
@openai-sdks openai-sdks Bot mentioned this pull request Aug 20, 2026
markstuart-oai pushed a commit to fallintoplace/openai-cli that referenced this pull request Sep 6, 2026
Automated Release PR
---


## [1.9.0](openai/openai-cli@v1.8.0...v1.9.0)
(2026-08-26)


### Features

* **api:** Add residency flag and deprecate geography
([openai#136](openai#136))
([e460582](openai@e460582))


### Bug Fixes

* Add provenance-aware untrusted stdin mode
([openai#137](openai#137))
([a133707](openai@a133707))
* build CLI releases with patched Go toolchains
([openai#93](openai#93))
([a58f1cc](openai@a58f1cc))
* discard fish completion diagnostics
([openai#109](openai#109))
([4f35fc0](openai@4f35fc0))
* escape raw output controls on interactive terminals
([openai#112](openai#112))
([7601afb](openai@7601afb))
* fail closed when bootstrapping Go dependencies
([openai#94](openai#94))
([4ebe610](openai@4ebe610))
* lock and verify Steady mock tooling
([openai#95](openai#95))
([681d595](openai@681d595))
* prepare release artifacts before publishing
([openai#111](openai#111))
([4193619](openai@4193619))
* redact sensitive response headers in debug logs
([openai#106](openai#106))
([4931572](openai@4931572))
* reject invalid multipart MIME header controls
([openai#105](openai#105))
([fad98b4](openai@fad98b4))
* restrict downloaded file permissions
([openai#107](openai#107))
([7a3a7d1](openai@7a3a7d1))
* safely construct bash file completions
([openai#110](openai#110))
([b3e0946](openai@b3e0946))
* stream binary download responses
([openai#108](openai#108))
([1f3ba6c](openai@1f3ba6c))
* stream multipart uploads without buffering
([openai#65](openai#65))
([bcf0ecd](openai@bcf0ecd))
* verify GoReleaser before privileged release execution
([openai#96](openai#96))
([b3729ea](openai@b3729ea))


### Chores

* **api:** clarify image background and audio delta docs
([openai#124](openai#124))
([056f306](openai@056f306))
* **api:** No customer-visible SDK or public API changes
([openai#128](openai#128))
([12e0d28](openai@12e0d28))
* **api:** refresh image model API reference
([openai#115](openai#115))
([a771913](openai@a771913))
* **api:** Refresh the bundled OpenAPI reference
([openai#66](openai#66))
([d14387a](openai@d14387a))
* **api:** Report no customer-visible SDK or public API changes
([openai#113](openai#113))
([8da2d53](openai@8da2d53))
* **api:** update generation metadata only
([openai#138](openai#138))
([4244a62](openai@4244a62))
* configure Dependabot for Go and GitHub Actions
([openai#69](openai#69))
([f495366](openai@f495366))
* **deps:** bump actions/attest-build-provenance from 4.1.0 to 4.2.2
([openai#102](openai#102))
([6594c73](openai@6594c73))
* **deps:** bump actions/checkout from 6.0.2 to 7.0.1
([openai#103](openai#103))
([ce6a6d0](openai@ce6a6d0))
* **deps:** bump actions/checkout from 6.0.2 to 7.0.1
([openai#134](openai#134))
([f40d5f2](openai@f40d5f2))
* **deps:** bump actions/download-artifact from 4.3.0 to 8.0.1
([openai#133](openai#133))
([98ed029](openai@98ed029))
* **deps:** bump actions/github-script from 7.1.0 to 9.0.0
([openai#132](openai#132))
([978ce47](openai@978ce47))
* **deps:** bump actions/setup-go in /
([openai#101](openai#101))
([5564982](openai@5564982))
* **deps:** bump actions/upload-artifact from 4.6.2 to 7.0.1
([openai#104](openai#104))
([b3ac15a](openai@b3ac15a))
* **deps:** bump github.com/charmbracelet/bubbles from 0.21.0 to 1.0.0
([openai#99](openai#99))
([7ac7035](openai@7ac7035))
* **deps:** bump github.com/urfave/cli/v3 from 3.4.1 to 3.10.1 in the
go-minor-and-patch group across 1 directory
([openai#130](openai#130))
([ddc612e](openai@ddc612e))
* **deps:** bump the charmbracelet group across 1 directory with 2
updates ([openai#97](openai#97))
([2137b80](openai@2137b80))
* **deps:** bump the codeql group across 1 directory with 2 updates
([openai#100](openai#100))
([c95ac0a](openai@c95ac0a))
* **deps:** bump the codeql group across 1 directory with 2 updates
([openai#131](openai#131))
([58e3bdd](openai@58e3bdd))
* **deps:** bump the go-minor-and-patch group across 1 directory with 5
updates ([openai#98](openai#98))
([74822be](openai@74822be))
* **deps:** update openai-go to v3.51.0
([openai#63](openai#63))
([68e3e70](openai@68e3e70))
* **deps:** update openai-go to v3.52.0
([openai#67](openai#67))
([7d87ee2](openai@7d87ee2))
* set a 1,000-line custom-code budget
([openai#126](openai#126))
([016bfb2](openai@016bfb2))


### Documentation

* add secure CLI agent and contributor guidance
([openai#72](openai#72))
([09ec087](openai@09ec087))
* standardize CLI vulnerability disclosure policy
([openai#71](openai#71))
([d082a01](openai@d082a01))

---
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>
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.

3 participants