Skip to content

feat(api) Add Live API - #694

Merged
apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-86
Sep 10, 2026
Merged

feat(api) Add Live API#694
apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-86

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Sep 10, 2026

Copy link
Copy Markdown
Contributor
  • Add Live API endpoints.

Castiron-Internal-PR: openai/openai-ruby-internal#86
Castiron-Source-SHA: b22ea7f177fc54317c450e03754f3dbd7bef36ed
Castiron-Public-Base-SHA: 7f19b93
@github-actions

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

65 mixed files remain; 1 existing customization changed; 6 generated baselines changed.

Compared 7f19b932549b7f0bb9ff05e6. Generated baselines verified.

File Result Current custom patch
lib/openai.rb Generated baseline changed +39 / −6
lib/openai/client.rb Generated baseline changed +574 / −20
lib/openai/resources/webhooks.rb Generated baseline changed +46 / −34
rbi/openai/client.rbi Generated baseline changed +121 / −5
rbi/openai/resources/responses.rbi Existing customization changed +338 / −16
scripts/castiron/test_custom_code_report.py Generated baseline changed +437 / −52
sig/openai/client.rbs Generated baseline changed +57 / −1
58 existing customizations unchanged
  • lib/openai/models/audio/transcription_create_response.rb
  • lib/openai/models/chat/chat_completion_message.rb
  • lib/openai/models/chat/chat_completion_message_function_tool_call.rb
  • lib/openai/models/chat/completion_create_params.rb
  • lib/openai/models/image_edit_completed_event.rb
  • lib/openai/models/image_edit_partial_image_event.rb
  • lib/openai/models/image_gen_completed_event.rb
  • lib/openai/models/image_gen_partial_image_event.rb
  • lib/openai/models/images_response.rb
  • lib/openai/models/response_format_json_schema.rb
  • lib/openai/models/responses/function_tool.rb
  • lib/openai/models/responses/response.rb
  • lib/openai/models/responses/response_create_params.rb
  • lib/openai/models/responses/response_format_text_config.rb
  • lib/openai/models/responses/response_format_text_json_schema_config.rb
  • lib/openai/models/responses/response_function_tool_call.rb
  • lib/openai/models/responses/response_function_web_search.rb
  • lib/openai/models/responses/response_output_text.rb
  • lib/openai/models/responses/tool.rb
  • lib/openai/resources/beta/threads.rb
  • lib/openai/resources/chat/completions.rb
  • lib/openai/resources/containers/files.rb
  • lib/openai/resources/files.rb
  • lib/openai/resources/responses.rb
  • lib/openai/resources/vector_stores/file_batches.rb
  • lib/openai/resources/vector_stores/files.rb
  • rbi/openai/models/chat/chat_completion_message.rbi
  • rbi/openai/models/chat/chat_completion_message_function_tool_call.rbi
  • rbi/openai/models/chat/completion_create_params.rbi
  • rbi/openai/models/image_edit_completed_event.rbi
  • rbi/openai/models/image_edit_partial_image_event.rbi
  • rbi/openai/models/image_gen_completed_event.rbi
  • rbi/openai/models/image_gen_partial_image_event.rbi
  • rbi/openai/models/images_response.rbi
  • rbi/openai/models/response_format_json_schema.rbi
  • rbi/openai/models/responses/response.rbi
  • rbi/openai/models/responses/response_create_params.rbi
  • rbi/openai/models/responses/response_function_tool_call.rbi
  • rbi/openai/models/responses/response_function_web_search.rbi
  • rbi/openai/models/responses/response_output_text.rbi

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

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

git fetch --no-tags origin 7f19b932549bd7d4376e6ca91c7c75f9b856ae83 7f0bb9ff05e61442e18479774ea0d8abccba23ec
python3 scripts/castiron/custom_code_report.py report \
  --base 7f19b932549bd7d4376e6ca91c7c75f9b856ae83 \
  --head 7f0bb9ff05e61442e18479774ea0d8abccba23ec --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-7f0bb9ff05e6
cat /tmp/castiron-custom-code-7f0bb9ff05e6/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

@apcha-oai
apcha-oai marked this pull request as ready for review September 10, 2026 17:17
@apcha-oai
apcha-oai requested a review from a team as a code owner September 10, 2026 17:17
@apcha-oai
apcha-oai merged commit 3fde020 into main Sep 10, 2026
22 checks passed
@apcha-oai
apcha-oai deleted the castiron/promotions/pr-86 branch September 10, 2026 17:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 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-09-10T17:29:29.583315Z 7f0bb9f Draft marked ready
🔒 Security Review Completed 2026-09-10T17:25:53.926287Z 7f0bb9f 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.

@openai-sdks

openai-sdks Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

236/236 SDK tests passed in 8.903s for Ruby SDK PR #694.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 173ms
tests/chat-completions-create.test.ts ✅ Passed 238ms
tests/chat-completions-stream.test.ts ✅ Passed 158ms
tests/files-content-binary.test.ts ✅ Passed 143ms
tests/files-create-multipart.test.ts ✅ Passed 150ms
tests/files-list-pagination.test.ts ✅ Passed 156ms
tests/initialize-config.test.ts ✅ Passed 97ms
tests/instance-isolation.test.ts ✅ Passed 139ms
tests/models-list.test.ts ✅ Passed 203ms
tests/responses-background-lifecycle.test.ts ✅ Passed 112ms
tests/responses-body-method-errors.test.ts ✅ Passed 411ms
tests/responses-cancel-timeout.test.ts ✅ Passed 237ms
tests/responses-cancel.test.ts ✅ Passed 252ms
tests/responses-compact-retries.test.ts ✅ Passed 231ms
tests/responses-compact.test.ts ✅ Passed 219ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 133ms
tests/responses-create-advanced.test.ts ✅ Passed 186ms
tests/responses-create-disconnect.test.ts ✅ Passed 152ms
tests/responses-create-errors.test.ts ✅ Passed 230ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 155ms
tests/responses-create-retries.test.ts ✅ Passed 193ms
tests/responses-create-stream-failures.test.ts ✅ Passed 173ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 225ms
tests/responses-create-stream-wire.test.ts ✅ Passed 1.853s
tests/responses-create-stream.test.ts ✅ Passed 146ms
tests/responses-create-terminal-states.test.ts ✅ Passed 292ms
tests/responses-create-timeout.test.ts ✅ Passed 251ms
tests/responses-create.test.ts ✅ Passed 171ms
tests/responses-delete.test.ts ✅ Passed 192ms
tests/responses-input-items-errors.test.ts ✅ Passed 190ms
tests/responses-input-items-list.test.ts ✅ Passed 198ms
tests/responses-input-items-options.test.ts ✅ Passed 147ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 290ms
tests/responses-input-tokens-count.test.ts ✅ Passed 221ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.067s
tests/responses-not-found-errors.test.ts ✅ Passed 306ms
tests/responses-parse.test.ts ✅ Passed 165ms
tests/responses-retrieve-retries.test.ts ✅ Passed 147ms
tests/responses-retrieve.test.ts ✅ Passed 248ms
tests/responses-stored-method-errors.test.ts ✅ Passed 823ms
tests/retry-behavior.test.ts ✅ Passed 3.467s
tests/sdk-error-shape.test.ts ✅ Passed 341ms

View OkTest run #34507358241

SDK merge (3fde0201bc4f) · head (7f0bb9ff05e6) · base (7f19b932549b) · OkTest (08ec4299e769)

@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: 7f0bb9ff05

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

body: parsed,
model: OpenAI::Models::Live::LiveCreateResponse,
security: {bearer_auth: true},
options: options

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Disable implicit retries for Live session allocation

When /live/sessions returns a retryable 408/409/429/5xx response, forwarding the unchanged options applies the client's default two retries, potentially replaying the SDP offer after the first request already allocated a session and leaving duplicate/orphaned sessions. Realtime::Calls#create explicitly defaults call allocation to zero retries while preserving caller overrides; apply the same behavior here and to Sessions#fork, with a focused retry regression test.

AGENTS.md reference: AGENTS.md:L56-L60

Useful? React with 👍 / 👎.

parsed, options = OpenAI::Live::SessionAcceptParams.dump_request(params)
@client.request(
method: :post,
path: ["live/sessions/%1$s/accept", session_id],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Redact Live session IDs from diagnostic URLs

When info or debug logging is enabled, this interpolated path reaches Logging.safe_url and Logging.safe_path verbatim; the sanitizer only redacts /realtime/calls/..., so the live_... identifier appears in request and completion logs for this and every other new Live session endpoint. Because these backend-held identifiers are used for session control and sideband connections, extend route redaction to Live paths and add focused logging coverage.

AGENTS.md reference: AGENTS.md:L43-L46

Useful? React with 👍 / 👎.

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