From f656b9f70a6961205fe1dd9346a663c6dab9d5fe Mon Sep 17 00:00:00 2001 From: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com> Date: Wed, 18 Nov 2026 05:29:49 +0000 Subject: [PATCH] chore(api): document CSAM moderation response fields Castiron-Internal-PR: https://github.com/openai/openai-python-internal/pull/435 Castiron-Source-SHA: a8a79fd47eb4425c12d55b3721ffa4344ec5c58d Castiron-Public-Base-SHA: 642d6d4ac5ada8fc4c0a0211dc2ac883b176fdbe --- .castiron.stats.yml | 10 +-- api_reference/openapi.transformed.yml | 96 +++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 5 deletions(-) diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 6bb90eac43..a5509da26d 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,7 +1,7 @@ schema_version: 1 -generation_id: dee76378-e67c-4e39-b545-9f257df8b231 -openapi_spec_hash: d28f1e5c39423153f8057ba11f157c2a -openapi_transformed_spec_hash: cab15e06e8c85cd4cb16654debd28726 -config_hash: 00b2193b69f1fff70da44589b70736d0 -codegen_sha: 09fa53f79de260a84b688f5f9740015a539c3c28 +generation_id: f503c873-b201-47e3-aad2-af29fd439952 +openapi_spec_hash: e44b6f938daf45c09ff239d6e85c5f78 +openapi_transformed_spec_hash: bfb2c0c4bfec79c6cd98aed1cc719661 +config_hash: d5a6f19fc1c1b8e3062fcb03e2649aa8 +codegen_sha: 339b722971a488fcbd9348b5443c3881832b7973 codegen_hash: 9d14309c72f055635e0c8ec84418f8da52a0b5205cb31d274c247d5416cc11bc diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index e65f2f8a4d..61ec9d1410 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -113392,6 +113392,102 @@ components: enum: - direct - programmatic + CSAMCategoryAppliedInputTypes: + additionalProperties: false + properties: + likely-csam: + items: + const: image + type: string + maxItems: 1 + minItems: 1 + title: Likely-Csam + type: array + likely-csam/gen-ai: + items: + const: image + type: string + maxItems: 1 + minItems: 1 + title: Likely-Csam/Gen-Ai + type: array + required: + - likely-csam + - likely-csam/gen-ai + title: CSAMCategoryAppliedInputTypes + type: object + CSAMCategoryFlags: + additionalProperties: false + properties: + likely-csam: + title: Likely-Csam + type: boolean + likely-csam/gen-ai: + title: Likely-Csam/Gen-Ai + type: boolean + required: + - likely-csam + - likely-csam/gen-ai + title: CSAMCategoryFlags + type: object + CSAMCategoryScores: + additionalProperties: false + properties: + likely-csam: + title: Likely-Csam + type: number + likely-csam/gen-ai: + title: Likely-Csam/Gen-Ai + type: number + required: + - likely-csam + - likely-csam/gen-ai + title: CSAMCategoryScores + type: object + CSAMModerationResult: + properties: + flagged: + description: Whether either CSAM category was flagged. + title: Flagged + type: boolean + categories: + $ref: '#/components/schemas/CSAMCategoryFlags' + description: Whether the image was flagged in each category. + category_scores: + $ref: '#/components/schemas/CSAMCategoryScores' + description: The classifier score for each category. + category_applied_input_types: + $ref: '#/components/schemas/CSAMCategoryAppliedInputTypes' + description: The input types evaluated for each category. + required: + - flagged + - categories + - category_scores + - category_applied_input_types + title: CSAMModerationResult + type: object + CreateCSAMModerationResponse: + properties: + id: + title: Id + type: string + model: + const: omni-moderation-csam-latest + title: Model + type: string + results: + items: + $ref: '#/components/schemas/CSAMModerationResult' + maxItems: 1 + minItems: 1 + title: Results + type: array + required: + - id + - model + - results + title: CreateCSAMModerationResponse + type: object DecisionPromptCacheBreakpoint: type: object properties: