Skip to content

feat(api): accept typed references in Realtime response inputs - #4189

Draft
markstuart-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-349
Draft

markstuart-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-349

Conversation

@markstuart-oai

@markstuart-oai markstuart-oai commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Draft: A follow-up is fixing a typing regression for existing code that reads or mutates response inputs. Updated compatibility checks are in progress; the validation below describes the previous revision.

Summary

Pass existing Realtime item IDs as typed response input, alone or mixed with messages.

Changes

  • Accept reference-only, existing-item and mixed lists as response input
  • Preserve the existing conversation item creation parameter and model types

Validation

173 query, upload, and Chat Completions parsing and streaming tests passed before and after the change. Strict model and type checks accept existing, reference-only, and mixed Realtime response inputs, and reject references in creation events and references without IDs. The generated-code budget check passed at zero custom lines.

Castiron-Internal-PR: openai/openai-python-internal#349
Castiron-Source-SHA: 56ac8cdf4222ed97dc1f24faaa29f3bde9ab3633
Castiron-Public-Base-SHA: a3f4302
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: a3f430241c4a2e3e25bf79cc7d0148e51795a292.

Trusted main policy: a3f430241c4a2e3e25bf79cc7d0148e51795a292.

✅ No new custom-code files detected.

0 mixed files remain; 0 existing customizations changed.

Compared a3f430241c4a → 39ce401fed96. Generated baselines verified.

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 40442437522 --repo openai/openai-python \
  --name castiron-custom-code-40442437522-1 --dir /tmp/castiron-custom-code-40442437522-1
git apply --stat /tmp/castiron-custom-code-40442437522-1/custom-code.patch
cat /tmp/castiron-custom-code-40442437522-1/custom-code.patch

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

git fetch --no-tags origin a3f430241c4a2e3e25bf79cc7d0148e51795a292 39ce401fed964166a9ab5b0fb9505c5a2a5ec125
python3 scripts/castiron/custom_code_report.py report \
  --base a3f430241c4a2e3e25bf79cc7d0148e51795a292 \
  --head 39ce401fed964166a9ab5b0fb9505c5a2a5ec125 --target-branch main --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-39ce401fed96
cat /tmp/castiron-custom-code-39ce401fed96/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

@markstuart-oai
markstuart-oai marked this pull request as ready for review October 27, 2026 03:05
@markstuart-oai
markstuart-oai requested a review from a team as a code owner October 27, 2026 03:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T03:14:39.839143Z 39ce401 Manual request
🔒 Security Review ✅ Completed 2026-10-27T03:15:50.914404Z 39ce401 Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39ce401fed

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api_reference/openapi.transformed.yml
@markstuart-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 39ce401fed

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 39ce401fed

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@markstuart-oai
markstuart-oai marked this pull request as draft October 27, 2026 16:59

This branch has not been deployed

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

1 participant