feat(api): Add GPT-5.5 model and optional tool name/namespace fields - #837
Merged
Conversation
Castiron-Internal-PR: openai/openai-java-internal#13 Castiron-Source-SHA: b55a0d1929cdc0e8c15e60424f12d1986a70c118 Castiron-Public-Base-SHA: c4a8d6c
There was a problem hiding this comment.
Pull request overview
This PR promotes generated Java SDK updates from the internal repository, primarily extending response/function-call output models and aligning associated tests with the updated schema.
Changes:
- Added
nameandnamespacefields to function tool call output-related models (stable + beta) and updated equality/hash/toString/validation accordingly. - Updated Kotlin tests to set (and in key cases assert) the new
name/namespacefields for roundtrip/serialization coverage. - Added the
gpt-5.5model identifier to model enums/param types and introduced Castiron generation metadata files.
Reviewed changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionToolCallOutputItem.kt | Adds name/namespace to the response function tool call output item model and builder. |
| openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt | Adds name/namespace to FunctionCallOutput input item model and builder; updates serialization/validation and object semantics. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseFunctionToolCallOutputItem.kt | Beta equivalent of adding name/namespace to function tool call output item model and builder. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInputItem.kt | Beta equivalent of adding name/namespace to FunctionCallOutput input item model and builder. |
| openai-java-core/src/main/kotlin/com/openai/models/ChatModel.kt | Adds GPT_5_5 ("gpt-5.5") to the chat model enum. |
| openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt | Adds "gpt-5.5" to response compact params model enum/mappings. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt | Adds "gpt-5.5" to beta response create params model enum/mappings. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt | Adds "gpt-5.5" to beta response compact params model enum/mappings. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt | Adds "gpt-5.5" to beta responses client event model enum/mappings. |
| openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt | Adds "gpt-5.5" to beta response model enum/mappings. |
| openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFunctionToolCallOutputItemTest.kt | Extends tests to populate and assert name/namespace. |
| openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseOutputItemTest.kt | Updates test builders to set name/namespace for function call output items. |
| openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseItemTest.kt | Updates test builders to set name/namespace for function call output items. |
| openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputItemTest.kt | Updates test builders to set name/namespace for function call outputs. |
| openai-java-core/src/test/kotlin/com/openai/models/conversations/items/ConversationItemTest.kt | Updates test builders to set name/namespace for embedded function call output items. |
| openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFunctionToolCallOutputItemTest.kt | Extends beta tests to populate and assert name/namespace. |
| openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseOutputItemTest.kt | Updates beta test builders to set name/namespace. |
| openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseItemTest.kt | Updates beta test builders to set name/namespace. |
| openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInputItemTest.kt | Updates beta test builders to set name/namespace. |
| api_reference/.gitattributes | Disables whitespace checking for openapi.transformed.yml under api_reference/. |
| .castiron.stats.yml | Adds generation metadata (schema/config/spec hashes, codegen SHA). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
apcha-oai
marked this pull request as ready for review
August 3, 2026 17:25
jbeckwith-oai
approved these changes
Aug 3, 2026
Merged
jbeckwith-oai
pushed a commit
that referenced
this pull request
Aug 3, 2026
Automated Release PR --- ## [4.50.0](v4.49.0...v4.50.0) (2026-08-03) ### Features * **api:** Add GPT-5.5 model and optional tool name/namespace fields ([#837](#837)) ([af860dc](af860dc)) ### Chores * remove retired Spring Boot 2 starter ([#827](#827)) ([52e3c64](52e3c64)) --- 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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expose the gpt-5.5 model identifier and add optional name and namespace properties to function/tool input and output models in the Responses and BetaResponses APIs. The new fields are optional and include typed getters, raw JSON accessors, builder setters, and are considered in equality, hashing, validation, and string representations.
Changes
Internal pull request: https://github.com/openai/openai-java-internal/pull/13
Validation