Skip to content

fix(realtime): accept GA WebRTC signaling - #11778

Open
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11776-realtime-ga-20260829
Open

fix(realtime): accept GA WebRTC signaling#11778
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11776-realtime-ga-20260829

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

This PR adds the OpenAI GA WebRTC signaling formats to /v1/realtime/calls:

  • accepts multipart/form-data with sdp and JSON session fields
  • accepts raw application/sdp with the model in the query string
  • returns a bare application/sdp answer for both GA formats
  • preserves the existing JSON request and response contract
  • documents all three request formats

Closes #11776

Notes for Reviewers

The request decoder and response writer have focused Ginkgo coverage. The existing JSON browser client remains unchanged.

Verification:

  • go test ./core/http/endpoints/openai
  • go vet ./core/http/endpoints/openai
  • git diff --check

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

OpenAI GA clients send multipart or raw SDP requests. They expect a bare
SDP answer. LocalAI only accepted its legacy JSON envelope, so signaling
failed before media setup.

Keep the JSON contract for existing clients. Accept both GA request
shapes and choose the matching response format.

Assisted-by: Codex:gpt-5
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.

POST /v1/realtime/calls doesn't accept the OpenAI GA WebRTC request shape (multipart in, application/sdp out)

1 participant