Skip to content

release: 4.66.0 - #1028

Merged
dpiet-oai merged 1 commit into
mainfrom
release-please--branches--main
Sep 21, 2026
Merged

dpiet-oai merged 1 commit into
mainfrom
release-please--branches--main

Conversation

@openai-sdks

@openai-sdks openai-sdks Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Automated Release PR

4.66.0 (2026-09-21)

⚠ BREAKING CHANGES

  • api: Removed the unsupported gpt-5.1-mini model's GPT_5_1_MINI constants and corresponding Known/Value enum cases from ChatModel, BetaResponse.Model, BetaResponsesClientEvent.ResponseCreate.Model, beta ResponseCreateParams.Model, and both beta and stable ResponseCompactParams.Model types. Code referencing any of these members must select an available model and be recompiled. This removal is covered by the SDK's minor-version compatibility exception.

Features

  • api: add external storage configuration management (#1032) (f26dbfd)
  • api: add safety case retrieval (#1033) (4c27852)
  • api: add safety warning and deactivation webhook events (#1031) (143c540)
  • api: add SIP media security to incoming call events (#1030) (3565b44)
  • api: support environment variable vault credentials (#1029) (683bfed)

Bug Fixes

  • api: correct model types and network policy docs (#1024) (f8cce9a)
  • close SSE responses at the terminal event (#1027) (1441ba1)
  • handle extreme retry dates and close retry responses (#1026) (18e36f8)
  • preserve explicit security-header removal (#1036) (5ac7585)
  • reject line breaks in multipart content types (#1025) (c3352aa)

Chores

  • api: document response management resources (#1034) (a363812)

Build System

  • deps: bump actions/setup-java from 5.7.0 to 6.0.1 (#1047) (205976b)
  • deps: bump org.junit.jupiter:junit-jupiter in / (#955) (d2969f8)
  • deps: bump org.yaml:snakeyaml in / (#1046) (b338b2a)

This PR was generated with Release Please. See documentation.

@openai-sdks
openai-sdks Bot requested a review from a team as a code owner September 18, 2026 23:57
@openai-sdks

openai-sdks Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

OkTest Summary

236/236 SDK tests passed in 16.663s for Java SDK PR #1028.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 352ms
tests/chat-completions-create.test.ts ✅ Passed 505ms
tests/chat-completions-stream.test.ts ✅ Passed 601ms
tests/files-content-binary.test.ts ✅ Passed 204ms
tests/files-create-multipart.test.ts ✅ Passed 389ms
tests/files-list-pagination.test.ts ✅ Passed 367ms
tests/initialize-config.test.ts ✅ Passed 218ms
tests/instance-isolation.test.ts ✅ Passed 185ms
tests/models-list.test.ts ✅ Passed 357ms
tests/responses-background-lifecycle.test.ts ✅ Passed 326ms
tests/responses-body-method-errors.test.ts ✅ Passed 442ms
tests/responses-cancel-timeout.test.ts ✅ Passed 271ms
tests/responses-cancel.test.ts ✅ Passed 240ms
tests/responses-compact-retries.test.ts ✅ Passed 320ms
tests/responses-compact.test.ts ✅ Passed 336ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 608ms
tests/responses-create-advanced.test.ts ✅ Passed 1.344s
tests/responses-create-disconnect.test.ts ✅ Passed 1.15s
tests/responses-create-errors.test.ts ✅ Passed 400ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 317ms
tests/responses-create-retries.test.ts ✅ Passed 322ms
tests/responses-create-stream-failures.test.ts ✅ Passed 1.409s
tests/responses-create-stream-timeout.test.ts ✅ Passed 207ms
tests/responses-create-stream-wire.test.ts ✅ Passed 5.847s
tests/responses-create-stream.test.ts ✅ Passed 294ms
tests/responses-create-terminal-states.test.ts ✅ Passed 425ms
tests/responses-create-timeout.test.ts ✅ Passed 266ms
tests/responses-create.test.ts ✅ Passed 319ms
tests/responses-delete.test.ts ✅ Passed 290ms
tests/responses-input-items-errors.test.ts ✅ Passed 262ms
tests/responses-input-items-list.test.ts ✅ Passed 288ms
tests/responses-input-items-options.test.ts ✅ Passed 326ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 221ms
tests/responses-input-tokens-count.test.ts ✅ Passed 390ms
tests/responses-malformed-inputs.test.ts ✅ Passed 4.736s
tests/responses-not-found-errors.test.ts ✅ Passed 500ms
tests/responses-parse.test.ts ✅ Passed 585ms
tests/responses-retrieve-retries.test.ts ✅ Passed 437ms
tests/responses-retrieve.test.ts ✅ Passed 228ms
tests/responses-stored-method-errors.test.ts ✅ Passed 1.022s
tests/retry-behavior.test.ts ✅ Passed 3.613s
tests/sdk-error-shape.test.ts ✅ Passed 348ms

View OkTest run #35645119550

SDK merge (55bacf72c6b6) · head (ef48fb37d7aa) · base (5ac7585d7a65) · OkTest (a0be4375e02d)

@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

83 mixed files remain; 0 existing customizations changed.

Compared 5ac7585d7a65ef48fb37d7aa. Generated baselines verified.

83 existing customizations unchanged
  • openai-java-core/src/main/kotlin/com/openai/models/audio/AudioResponseFormat.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuth.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuthCreateParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuthRotateParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseStreamEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesServerEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionMessageFunctionToolCall.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionToolMessageParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/embeddings/Embedding.kt
  • openai-java-core/src/main/kotlin/com/openai/models/embeddings/EmbeddingCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionToolCall.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionWebSearch.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseStreamEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseTextConfig.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesServerEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/videos/Video.kt
  • openai-java-core/src/main/kotlin/com/openai/models/webhooks/UnwrapWebhookEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/webhooks/WebhookEndpointWithSecret.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/BetaServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/BetaServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/ResponseServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/ResponseServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/WebhookServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/WebhookServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/SessionServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/SessionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/BetaService.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/BetaServiceImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/ResponseService.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/ResponseServiceImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/WebhookService.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/WebhookServiceImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/audio/TranscriptionServiceImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/SessionService.kt

43 more in the full report.

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 35645206605 --repo openai/openai-java \
  --name castiron-custom-code-35645206605-1 --dir /tmp/castiron-custom-code-35645206605-1
git apply --stat /tmp/castiron-custom-code-35645206605-1/custom-code.patch
cat /tmp/castiron-custom-code-35645206605-1/custom-code.patch

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

git fetch --no-tags origin 5ac7585d7a6506b8b05d850d3c703a5ec8155680 ef48fb37d7aac152386f0c3f9173ca5eb3781384
python3 scripts/castiron/custom_code_report.py report \
  --base 5ac7585d7a6506b8b05d850d3c703a5ec8155680 \
  --head ef48fb37d7aac152386f0c3f9173ca5eb3781384 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-ef48fb37d7aa
cat /tmp/castiron-custom-code-ef48fb37d7aa/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

@dpiet-oai
dpiet-oai self-requested a review September 19, 2026 00:01
@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch 2 times, most recently from ff2dd0c to 080c3ce Compare September 19, 2026 00:53
@openai-sdks openai-sdks Bot changed the title release: 4.65.1 release: 5.0.0 Sep 19, 2026
@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from 080c3ce to d36301b Compare September 19, 2026 01:05

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

Please hold this release while the accidental major bump is corrected. The unsupported model-slug correction should remain on the 4.x line under the documented versioning exception. Regenerate this release as 4.66.0 and verify the version files, changelog, and CI before approval.

@openai-sdks openai-sdks Bot changed the title release: 5.0.0 release: 4.66.0 Sep 19, 2026
@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from d36301b to 48ad4d3 Compare September 19, 2026 03:14

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48ad4d38fe

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread CHANGELOG.md Outdated

### Bug Fixes

* **api:** correct model types and network policy docs ([f8cce9a](https://github.com/openai/openai-java/commit/f8cce9a5e1376e793aedbaf6f94d2a0789d858bf))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Document the removed model constants as breaking

For consumers referencing ChatModel.GPT_5_1_MINI or the analogous generated model members, upgrading to 4.66.0 causes compilation failures or NoSuchFieldError because f8cce9a removes those public fields and enum cases, yet this entry presents the change only as a generic bug fix. Add an explicit breaking-changes note naming the removed symbols and directing users to select an available model so affected consumers do not discover the incompatibility only during an upgrade.

Useful? React with 👍 / 👎.

@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from 48ad4d3 to 57f7144 Compare September 19, 2026 03:31

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57f7144e67

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread CHANGELOG.md Outdated

### ⚠ BREAKING CHANGES

* **api:** Removed the unsupported `gpt-5.1-mini` model's `GPT_5_1_MINI` constants and corresponding `Known`/`Value` enum cases from `ChatModel` and both beta and stable `ResponseCompactParams.Model` types. Code referencing these members must select an available model and be recompiled. This removal is covered by the SDK's minor-version compatibility exception.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge List all removed generated model constants

The newly added breaking-change note still omits public members removed by f8cce9a: BetaResponse.Model.GPT_5_1_MINI, BetaResponsesClientEvent.ResponseCreate.Model.GPT_5_1_MINI, and beta ResponseCreateParams.Model.GPT_5_1_MINI (plus their Known/Value cases). Consumers referencing any of these symbols will get the same compilation failure or NoSuchFieldError, but the note currently claims the removal is limited to ChatModel and the two compact-parameter types; enumerate the remaining affected types so those users receive accurate migration guidance.

Useful? React with 👍 / 👎.

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.

This update requires a major

@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch 6 times, most recently from 4678b51 to d6a6647 Compare September 19, 2026 16:52

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6a66471c6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread build.gradle.kts
allprojects {
group = "com.openai"
version = "4.65.0" // x-release-please-version
version = "4.66.0" // x-release-please-version

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use a major version for the public API removals

The updated changelog now explicitly confirms that this release removes public constants and enum members from stable types such as ChatModel and ResponseCompactParams and requires consumers to recompile, but the build still publishes it as 4.66.0. Consumers accepting compatible 4.x updates can therefore receive a binary-incompatible JAR and fail with NoSuchFieldError (or compilation errors); update all release markers to a new major version instead.

Useful? React with 👍 / 👎.

@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch 5 times, most recently from 0e5646f to 1902e24 Compare September 21, 2026 13:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-21T16:57:06.255870Z b511293 New commits
🔒 Security Review Completed 2026-09-21T16:57:40.824092Z b511293 New commits
ℹ️ 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.

@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from b511293 to a617721 Compare September 21, 2026 17:59
@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from a617721 to ef48fb3 Compare September 21, 2026 19:29
@dpiet-oai

Copy link
Copy Markdown
Contributor

The requested version correction is present at ef48fb37d7aac152386f0c3f9173ca5eb3781384: the release manifest, Gradle project version, README/CONTRIBUTING/Bedrock examples, and changelog all specify 4.66.0. The changelog explains the unsupported-model removal under the documented minor-version exception. Current CI, including API compatibility and Java 8/25 runtime checks, passes.

@markstuart-oai, please re-review the corrected release and clear the changes-requested hold if it now meets your requirements. This release includes the merged credential-header correction in #1036. Further separately reviewed Java fixes are being prepared; this request does not claim those have merged or that Maven delivery has completed.

@markstuart-oai markstuart-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 release correction at ef48fb37d7aac152386f0c3f9173ca5eb3781384. The manifest, Gradle project version, README/CONTRIBUTING examples and Bedrock examples consistently specify 4.66.0. The changelog now identifies the removed model constants and enum cases, the recompilation/migration requirement, and the documented minor-version exception. These changes address my earlier version-correction review; no further actionable findings in this release diff.

Current-commit hosted CI passes, including API/Jackson compatibility, tests, build/lint, version support and Java 8/25 runtime checks. Review used pinned source and hosted results; tests were not independently rerun.

The current commit still contains the documented model-member removal. The planned restoration and corresponding changelog refresh remain prerequisites before release; this approval does not establish that regeneration or package publication has completed.

@dpiet-oai
dpiet-oai added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 1d689bf Sep 21, 2026
16 checks passed
@openai-sdks

openai-sdks Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Created releases:

🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants