Skip to content

feat(api): Add GPT-5.5 model and optional tool name/namespace fields - #837

Merged
jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-13-b55a0d1929cd
Aug 3, 2026
Merged

feat(api): Add GPT-5.5 model and optional tool name/namespace fields#837
jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-13-b55a0d1929cd

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

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

  • Add gpt-5.5 as a known model value (e.g., ChatModel and response model enums) so callers can select or detect the gpt-5.5 model identifier.
  • Add optional name:String and namespace:String fields to function/tool output and input model types used by Responses and BetaResponses (including public types such as ResponseFunctionToolCallOutputItem, ResponseInputItem, BetaResponseFunctionToolCallOutputItem, and BetaResponseInputItem).
  • Expose typed accessors name(): Optional and namespace(): Optional, raw JSON accessors (_name(), _namespace()), and builder methods for these fields; include them in equals(), hashCode(), toString(), and validation logic.

Internal pull request: https://github.com/openai/openai-java-internal/pull/13

Validation

  • Generated SDK changes were copied from the internal pull request.
  • Public SDK CI runs against this draft pull request.

Castiron-Internal-PR: openai/openai-java-internal#13
Castiron-Source-SHA: b55a0d1929cdc0e8c15e60424f12d1986a70c118
Castiron-Public-Base-SHA: c4a8d6c
Copilot AI review requested due to automatic review settings August 3, 2026 17:09

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 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 name and namespace fields 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 / namespace fields for roundtrip/serialization coverage.
  • Added the gpt-5.5 model 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 apcha-oai changed the title [castiron] promote Java SDK changes feat(api): Add GPT-5.5 model and optional tool name/namespace fields Aug 3, 2026
@apcha-oai
apcha-oai marked this pull request as ready for review August 3, 2026 17:25
@apcha-oai
apcha-oai requested a review from a team as a code owner August 3, 2026 17:25
@openai-sdks

openai-sdks Bot commented Aug 3, 2026

Copy link
Copy Markdown

OkTest Summary

237/237 SDK tests passed in 17.202s for Java SDK PR #837.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 185ms
tests/chat-completions-create.test.ts ✅ Passed 420ms
tests/chat-completions-stream.test.ts ✅ Passed 330ms
tests/files-content-binary.test.ts ✅ Passed 199ms
tests/files-create-multipart.test.ts ✅ Passed 398ms
tests/files-list-pagination.test.ts ✅ Passed 239ms
tests/initialize-config.test.ts ✅ Passed 199ms
tests/instance-isolation.test.ts ✅ Passed 213ms
tests/models-list.test.ts ✅ Passed 196ms
tests/responses-background-lifecycle.test.ts ✅ Passed 222ms
tests/responses-body-method-errors.test.ts ✅ Passed 482ms
tests/responses-cancel-timeout.test.ts ✅ Passed 221ms
tests/responses-cancel.test.ts ✅ Passed 373ms
tests/responses-compact-retries.test.ts ✅ Passed 449ms
tests/responses-compact.test.ts ✅ Passed 335ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 371ms
tests/responses-create-advanced.test.ts ✅ Passed 1.462s
tests/responses-create-disconnect.test.ts ✅ Passed 1.961s
tests/responses-create-errors.test.ts ✅ Passed 281ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 172ms
tests/responses-create-retries.test.ts ✅ Passed 275ms
tests/responses-create-stream-failures.test.ts ✅ Passed 267ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 315ms
tests/responses-create-stream-wire.test.ts ✅ Passed 7.652s
tests/responses-create-stream.test.ts ✅ Passed 88ms
tests/responses-create-terminal-states.test.ts ✅ Passed 350ms
tests/responses-create-timeout.test.ts ✅ Passed 199ms
tests/responses-create.test.ts ✅ Passed 204ms
tests/responses-delete.test.ts ✅ Passed 177ms
tests/responses-input-items-errors.test.ts ✅ Passed 337ms
tests/responses-input-items-list.test.ts ✅ Passed 432ms
tests/responses-input-items-options.test.ts ✅ Passed 118ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 269ms
tests/responses-input-tokens-count.test.ts ✅ Passed 282ms
tests/responses-malformed-inputs.test.ts ✅ Passed 5.727s
tests/responses-not-found-errors.test.ts ✅ Passed 342ms
tests/responses-parse.test.ts ✅ Passed 606ms
tests/responses-retrieve-retries.test.ts ✅ Passed 279ms
tests/responses-retrieve.test.ts ✅ Passed 305ms
tests/responses-stored-method-errors.test.ts ✅ Passed 980ms
tests/retry-behavior.test.ts ✅ Passed 3.668s
tests/sdk-error-shape.test.ts ✅ Passed 563ms

View OkTest run #30850035626

SDK merge (798cce96827b) · head (a2f22375dd4c) · base (bed79520181b) · OkTest (91635c6a2723)

Copilot AI review requested due to automatic review settings August 3, 2026 20:24
@jbeckwith-oai
jbeckwith-oai enabled auto-merge (squash) August 3, 2026 20:24

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 21 out of 22 changed files in this pull request and generated no new comments.

@jbeckwith-oai
jbeckwith-oai merged commit af860dc into main Aug 3, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
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>
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