Skip to content

release: 4.66.0 - #1028

Open
openai-sdks[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main
Open

openai-sdks[bot] wants to merge 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-20)

⚠ 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)
  • reject line breaks in multipart content types (#1025) (c3352aa)

Chores

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

Build System

  • deps: bump org.junit.jupiter:junit-jupiter in / (#955) (d2969f8)

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 18.085s for Java SDK PR #1028.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 206ms
tests/chat-completions-create.test.ts ✅ Passed 655ms
tests/chat-completions-stream.test.ts ✅ Passed 618ms
tests/files-content-binary.test.ts ✅ Passed 281ms
tests/files-create-multipart.test.ts ✅ Passed 281ms
tests/files-list-pagination.test.ts ✅ Passed 387ms
tests/initialize-config.test.ts ✅ Passed 185ms
tests/instance-isolation.test.ts ✅ Passed 161ms
tests/models-list.test.ts ✅ Passed 392ms
tests/responses-background-lifecycle.test.ts ✅ Passed 439ms
tests/responses-body-method-errors.test.ts ✅ Passed 443ms
tests/responses-cancel-timeout.test.ts ✅ Passed 214ms
tests/responses-cancel.test.ts ✅ Passed 391ms
tests/responses-compact-retries.test.ts ✅ Passed 330ms
tests/responses-compact.test.ts ✅ Passed 262ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 815ms
tests/responses-create-advanced.test.ts ✅ Passed 1.326s
tests/responses-create-disconnect.test.ts ✅ Passed 1.139s
tests/responses-create-errors.test.ts ✅ Passed 391ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 377ms
tests/responses-create-retries.test.ts ✅ Passed 655ms
tests/responses-create-stream-failures.test.ts ✅ Passed 312ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 277ms
tests/responses-create-stream-wire.test.ts ✅ Passed 7.789s
tests/responses-create-stream.test.ts ✅ Passed 126ms
tests/responses-create-terminal-states.test.ts ✅ Passed 331ms
tests/responses-create-timeout.test.ts ✅ Passed 213ms
tests/responses-create.test.ts ✅ Passed 285ms
tests/responses-delete.test.ts ✅ Passed 270ms
tests/responses-input-items-errors.test.ts ✅ Passed 404ms
tests/responses-input-items-list.test.ts ✅ Passed 481ms
tests/responses-input-items-options.test.ts ✅ Passed 478ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 307ms
tests/responses-input-tokens-count.test.ts ✅ Passed 335ms
tests/responses-malformed-inputs.test.ts ✅ Passed 5.626s
tests/responses-not-found-errors.test.ts ✅ Passed 375ms
tests/responses-parse.test.ts ✅ Passed 538ms
tests/responses-retrieve-retries.test.ts ✅ Passed 232ms
tests/responses-retrieve.test.ts ✅ Passed 356ms
tests/responses-stored-method-errors.test.ts ✅ Passed 1.026s
tests/retry-behavior.test.ts ✅ Passed 3.879s
tests/sdk-error-shape.test.ts ✅ Passed 453ms

View OkTest run #35489010485

SDK merge (cb3f56674fd1) · head (725c5b958ff0) · base (d2969f8efd58) · 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 d2969f8efd58725c5b958ff0. 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 35489040959 --repo openai/openai-java \
  --name castiron-custom-code-35489040959-1 --dir /tmp/castiron-custom-code-35489040959-1
git apply --stat /tmp/castiron-custom-code-35489040959-1/custom-code.patch
cat /tmp/castiron-custom-code-35489040959-1/custom-code.patch

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

git fetch --no-tags origin d2969f8efd588e492d97ec41e892cd91e9906c59 725c5b958ff09c367a4eacab54faccd1b5fdec4a
python3 scripts/castiron/custom_code_report.py report \
  --base d2969f8efd588e492d97ec41e892cd91e9906c59 \
  --head 725c5b958ff09c367a4eacab54faccd1b5fdec4a --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-725c5b958ff0
cat /tmp/castiron-custom-code-725c5b958ff0/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 2 times, most recently from bdb423c to ff9756d Compare September 20, 2026 02:44
@openai-sdks
openai-sdks Bot force-pushed the release-please--branches--main branch from ff9756d to 725c5b9 Compare September 20, 2026 04:23
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