Skip to content

feat(api): add standalone CSAM moderation models - #1415

Merged
markstuart-oai merged 1 commit into
mainfrom
castiron/promotions/pr-487
Nov 18, 2026
Merged

markstuart-oai merged 1 commit into
mainfrom
castiron/promotions/pr-487

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Summary

Adds CsamModerationResponse and CsamModeration so Java callers can represent CSAM classifier results.

Changes

  • Expose the flags, scores, and input types for both CSAM categories without changing the return type of the existing moderation method

Castiron-Internal-PR: openai/openai-java-internal#487
Castiron-Source-SHA: bfdbb1ea249bf171a089f11e484c76964a7c7b08
Castiron-Public-Base-SHA: df36afe
@markstuart-oai
markstuart-oai requested a review from a team as a code owner November 18, 2026 05:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T05:32:02.378551Z e6f7122 PR opened
🔒 Security Review ✅ Completed 2026-11-18T05:32:06.332713Z e6f7122 PR opened
ℹ️ 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.

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

Approved at e6f7122 after comprehensive static review and an independent language review. No actionable findings. Checked required-field handling, exact JSON aliases, builder immutability, model constant validation, unknown/raw JSON preservation, both model tests and four generated-file hashes. The 96-line schema addition matches the other four SDK changes; existing moderation request/return signatures remain unchanged.

Hosted check snapshot: {"SUCCESS": 10, "IN_PROGRESS": 3}. Static review only; no candidate code or local tests executed.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit b12ad22 Nov 18, 2026
14 checks passed
@openai-sdks openai-sdks Bot mentioned this pull request Nov 18, 2026
VitorEAFeliciano pushed a commit to Navegos/openai-java that referenced this pull request Nov 28, 2026
Automated Release PR
---


##
[4.109.0](openai/openai-java@v4.108.0...v4.109.0)
(2026-11-18)


### Features

* **api:** add standalone CSAM moderation models
([openai#1415](openai#1415))
([b12ad22](openai@b12ad22))


### Build System

* bump actions/setup-java from 6.1.0 to 6.2.0
([openai#1405](openai#1405))
([e271a7b](openai@e271a7b))
* bump com.fasterxml.jackson.core:jackson-databind in /
([openai#1404](openai#1404))
([db61b4a](openai@db61b4a))
* bump graalvm/setup-graalvm from 1.6.7 to 1.6.8
([openai#1349](openai#1349))
([a7b1eb9](openai@a7b1eb9))

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