Repository navigation
chore(api): use neutral moderation examples - #4104
Conversation
Castiron-Internal-PR: openai/openai-python-internal#283 Castiron-Source-SHA: 5d54b52be87fe1f98c83329182cd818918c97f8d Castiron-Public-Base-SHA: 547ecb1
Castiron custom codeEvaluated main: Trusted main policy: ✅ No new custom-code files detected. 41 mixed files remain; 0 existing customizations changed. Compared 41 existing customizations unchanged
1 more in the full report. A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 39096314760 --repo openai/openai-python \
--name castiron-custom-code-39096314760-1 --dir /tmp/castiron-custom-code-39096314760-1
git apply --stat /tmp/castiron-custom-code-39096314760-1/custom-code.patch
cat /tmp/castiron-custom-code-39096314760-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 547ecb1e4fc233f19030736c29fee4374dfbaca1 ff2638944b3f81d7bab637e70ffeeccc139eee5f
python3 scripts/castiron/custom_code_report.py report \
--base 547ecb1e4fc233f19030736c29fee4374dfbaca1 \
--head ff2638944b3f81d7bab637e70ffeeccc139eee5f --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-ff2638944b3f
cat /tmp/castiron-custom-code-ff2638944b3f/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed ff2638944b3f81d7bab637e70ffeeccc139eee5f. The neutral moderation examples and removal of the obsolete response example are consistent. The sync, async, raw-response, and streaming tests keep their assertions and request parameters; only the example input changes. API types and runtime code remain unchanged. No correctness or maintainability findings.
Validation: reviewed the complete pinned diff and surrounding tests, checked the transformed-spec structure, and verified generated-file hashes. Hosted Python 3.10/3.14 tests, HTTPX2 tests, lint, type checks, compatibility checks, and OkTest pass. I did not run candidate code or tests locally.
Summary
Use a generic placeholder for text in moderation examples.
Changes
The moderation request uses a neutral placeholder. Its obsolete response example is removed because it described the previous input; response examples are optional. API parameters, response types, and endpoint behavior are unchanged.