Skip to content

chore(api): use neutral moderation examples - #2969

Merged
jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-324
Oct 18, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-324

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Use a generic placeholder for text in moderation examples.

Changes

  • Replace the explicit text example with a neutral placeholder.
  • Keep moderation parameters, response types, and behavior unchanged.

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.

Castiron-Internal-PR: openai/openai-node-internal#324
Castiron-Source-SHA: 4cc4e2441126957375bbb002ffc64d5b8ac5b42c
Castiron-Public-Base-SHA: e989fc0
@jbeckwith-oai
jbeckwith-oai marked this pull request as ready for review October 18, 2026 04:19
@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 18, 2026 04:19
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T04:20:35.997542Z c6b62dc Draft marked ready
🔒 Security Review ✅ Completed 2026-10-18T04:21:34.499328Z c6b62dc Draft marked ready
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: e989fc07033981150d68c4e06e8600452b46494c.

Trusted main policy: e989fc07033981150d68c4e06e8600452b46494c.

✅ No new custom-code files detected.

47 mixed files remain; 0 existing customizations changed.

Compared e989fc070339 → c6b62dc46666. Generated baselines verified.

47 existing customizations unchanged
  • api.md
  • src/client.ts
  • src/resources/admin/organization/usage.ts
  • src/resources/audio/transcriptions.ts
  • src/resources/audio/translations.ts
  • src/resources/beta/agents/agents.ts
  • src/resources/beta/agents/environments/environments.ts
  • src/resources/beta/agents/environments/files.ts
  • src/resources/beta/agents/sessions/artifacts.ts
  • src/resources/beta/agents/sessions/sessions.ts
  • src/resources/beta/assistants.ts
  • src/resources/beta/beta.ts
  • src/resources/beta/index.ts
  • src/resources/beta/responses/internal-base.ts
  • src/resources/beta/responses/responses.ts
  • src/resources/beta/responses/ws-base.ts
  • src/resources/beta/responses/ws.ts
  • src/resources/beta/threads/index.ts
  • src/resources/beta/threads/runs/index.ts
  • src/resources/beta/threads/runs/runs.ts
  • src/resources/beta/threads/threads.ts
  • src/resources/chat/completions/completions.ts
  • src/resources/chat/completions/index.ts
  • src/resources/conversations/index.ts
  • src/resources/embeddings.ts
  • src/resources/files.ts
  • src/resources/fine-tuning/checkpoints/permissions.ts
  • src/resources/images.ts
  • src/resources/live/forks/ws-base.ts
  • src/resources/live/forks/ws.ts
  • src/resources/live/sideband/ws-base.ts
  • src/resources/live/sideband/ws.ts
  • src/resources/live/ws-base.ts
  • src/resources/live/ws.ts
  • src/resources/responses/internal-base.ts
  • src/resources/responses/responses.ts
  • src/resources/responses/ws-base.ts
  • src/resources/responses/ws.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts

7 more in the full report.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 39096733809 --repo openai/openai-node \
  --name castiron-custom-code-39096733809-1 --dir /tmp/castiron-custom-code-39096733809-1
git apply --stat /tmp/castiron-custom-code-39096733809-1/custom-code.patch
cat /tmp/castiron-custom-code-39096733809-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin e989fc07033981150d68c4e06e8600452b46494c c6b62dc466661ba90231b4764edf1d6f5942b0a3
python3 scripts/castiron/custom_code_report.py report \
  --base e989fc07033981150d68c4e06e8600452b46494c \
  --head c6b62dc466661ba90231b4764edf1d6f5942b0a3 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-c6b62dc46666
cat /tmp/castiron-custom-code-c6b62dc46666/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@openai-sdks

openai-sdks Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 8.238s for Node SDK PR #2969.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 156ms
tests/chat-completions-create.test.ts ✅ Passed 181ms
tests/chat-completions-stream.test.ts ✅ Passed 152ms
tests/files-content-binary.test.ts ✅ Passed 203ms
tests/files-create-multipart.test.ts ✅ Passed 153ms
tests/files-list-pagination.test.ts ✅ Passed 132ms
tests/initialize-config.test.ts ✅ Passed 152ms
tests/instance-isolation.test.ts ✅ Passed 184ms
tests/models-list.test.ts ✅ Passed 121ms
tests/responses-background-lifecycle.test.ts ✅ Passed 260ms
tests/responses-body-method-errors.test.ts ✅ Passed 218ms
tests/responses-cancel-timeout.test.ts ✅ Passed 265ms
tests/responses-cancel.test.ts ✅ Passed 174ms
tests/responses-compact-retries.test.ts ✅ Passed 275ms
tests/responses-compact.test.ts ✅ Passed 179ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 162ms
tests/responses-create-advanced.test.ts ✅ Passed 178ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.082s
tests/responses-create-errors.test.ts ✅ Passed 159ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 115ms
tests/responses-create-retries.test.ts ✅ Passed 238ms
tests/responses-create-stream-failures.test.ts ✅ Passed 123ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.155s
tests/responses-create-stream-wire.test.ts ✅ Passed 1.327s
tests/responses-create-stream.test.ts ✅ Passed 170ms
tests/responses-create-terminal-states.test.ts ✅ Passed 209ms
tests/responses-create-timeout.test.ts ✅ Passed 255ms
tests/responses-create.test.ts ✅ Passed 187ms
tests/responses-delete.test.ts ✅ Passed 183ms
tests/responses-input-items-errors.test.ts ✅ Passed 174ms
tests/responses-input-items-list.test.ts ✅ Passed 159ms
tests/responses-input-items-options.test.ts ✅ Passed 165ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 276ms
tests/responses-input-tokens-count.test.ts ✅ Passed 174ms
tests/responses-malformed-inputs.test.ts ✅ Passed 892ms
tests/responses-not-found-errors.test.ts ✅ Passed 274ms
tests/responses-parse.test.ts ✅ Passed 171ms
tests/responses-retrieve-retries.test.ts ✅ Passed 270ms
tests/responses-retrieve.test.ts ✅ Passed 191ms
tests/responses-stored-method-errors.test.ts ✅ Passed 454ms
tests/retry-behavior.test.ts ✅ Passed 2.868s
tests/sdk-error-shape.test.ts ✅ Passed 193ms

View OkTest run #39096705469

SDK merge (3d2aa0548328) · head (c6b62dc46666) · base (e989fc070339) · OkTest (ebbcfaca8a5e)

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

Reviewed c6b62dc466661ba90231b4764edf1d6f5942b0a3. The neutral moderation examples and removal of the obsolete response example are consistent. The two generated tests retain their request options and raw/parsed response assertions; only their input strings change. API types and runtime code remain unchanged. No correctness or maintainability findings.

Validation: reviewed the complete pinned diff and surrounding code, checked the transformed-spec structure, and verified generated-file hashes. Hosted Node.js 22/24/26 tests, builds, lint, compatibility checks, and CodeQL pass. I did not run candidate code or tests locally.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit 3a3b852 Oct 18, 2026
63 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-324 branch October 18, 2026 04:38
@openai-sdks openai-sdks Bot mentioned this pull request Oct 18, 2026
gh-actions-shared Bot pushed a commit to xf-qubit/openai-node that referenced this pull request Oct 19, 2026
Automated Release PR
---


##
[7.39.0](openai/openai-node@v7.38.0...v7.39.0)
(2026-10-18)


### Features

* **realtime:** add opt-in bounded connection recovery
([openai#2968](openai#2968))
([64872e5](openai@64872e5))


### Chores

* **api:** use neutral moderation examples
([openai#2969](openai#2969))
([3a3b852](openai@3a3b852))

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

2 participants