Forward audio inputs to the Responses API - #33932
Merged
copyberry[bot] merged 1 commit intoJul 18, 2026
Merged
Conversation
## Why Audio variants were available in the user-input protocol but were replaced with unsupported-input placeholders instead of being sent to the model. ## What changed - Serialize audio data URLs as `input_audio` content and convert local `wav`, `mp3`, `m4a`, `webm`, and `ogg` files to labeled data URLs. - Validate and canonicalize base64 audio before requests, enforce the 50 MiB input limit, and replace invalid, unsupported, or oversized audio with explanatory text. - Preserve audio attachments when mapping response items back to user-message events and document the app-server input variants. ## Testing - Add unit coverage for local-file conversion, data URL validation, size and format errors, event mapping, and attachment extraction. - Add client tests that verify data URL and local audio payloads sent to the Responses API. GitOrigin-RevId: f72cd6b6e43ab12757eeb47621b1d670594ac7d9
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/f72cd6b6e43ab12757eeb47621b1d670594ac7d9
branch
from
July 18, 2026 00:27
e8fb3c9 to
23899f7
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/f72cd6b6e43ab12757eeb47621b1d670594ac7d9
branch
July 18, 2026 00:28
Immutable1407
temporarily deployed
to
issue-triage
July 18, 2026 00:55 — with
GitHub Actions
Inactive
Immutable1407
temporarily deployed
to
issue-triage
July 18, 2026 00:55 — with
GitHub Actions
Inactive
Immutable1407
temporarily deployed
to
issue-triage
July 18, 2026 00:55 — with
GitHub Actions
Inactive
Immutable1407
temporarily deployed
to
issue-triage
July 18, 2026 00:56 — with
GitHub Actions
Inactive
fanyi18511075691-sys
temporarily deployed
to
issue-triage
July 18, 2026 02:00 — with
GitHub Actions
Inactive
fanyi18511075691-sys
temporarily deployed
to
issue-triage
July 18, 2026 02:00 — with
GitHub Actions
Inactive
fanyi18511075691-sys
temporarily deployed
to
issue-triage
July 18, 2026 02:00 — with
GitHub Actions
Inactive
fanyi18511075691-sys
temporarily deployed
to
issue-triage
July 18, 2026 02:02 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forward audio inputs to the Responses API
Why
Audio variants were available in the user-input protocol but were replaced with unsupported-input placeholders instead of being sent to the model.
What changed
input_audiocontent and convert localwav,mp3,m4a,webm, andoggfiles to labeled data URLs.Testing