Skip to content

feat(openai): allow GPT-Live on custom realtime baseUrl endpoints - #178262

Closed
moeadham wants to merge 1 commit into
openclaw:mainfrom
moeadham:feat/openai-gpt-live-custom-endpoint
Closed

moeadham wants to merge 1 commit into
openclaw:mainfrom
moeadham:feat/openai-gpt-live-custom-endpoint

Conversation

@moeadham

Copy link
Copy Markdown

A custom talk.realtime.providers.openai.baseUrl previously refused GPT-Live. With gpt-live-1, a baseUrl ending in /realtime now opens GPT-Live on the sibling /live/sessions endpoint over gateway-relay, carrying non-model query parameters. Custom endpoints receive only the Platform API key; the gpt-live-1-codex model, ChatGPT sign-in, browser WebRTC, and non-/realtime paths are refused with an actionable error.

What Problem This Solves

User Impact

Why This Change Was Made

Evidence

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: openai size: M triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 20, 2026
A custom talk.realtime.providers.openai.baseUrl previously refused GPT-Live.
With gpt-live-1, a baseUrl ending in /realtime now opens GPT-Live on the
sibling /live/sessions endpoint over gateway-relay, carrying non-model query
parameters. Custom endpoints receive only the Platform API key; the
gpt-live-1-codex model, ChatGPT sign-in, browser WebRTC, and non-/realtime
paths are refused with an actionable error.
@moeadham
moeadham force-pushed the feat/openai-gpt-live-custom-endpoint branch from af60c65 to fb03c0b Compare October 20, 2026 08:29
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR enables public GPT-Live through custom OpenAI realtime endpoints using the existing Gateway-side voice bridges.

Example: Select gpt-live-1 with baseUrl https://router.example.com/v1/realtime and gateway-relay.

  • Before: Session creation rejects GPT-Live with a custom baseUrl.
  • After: The bridge connects to wss://router.example.com/v1/live/sessions using Platform API-key authentication.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source change is coherent with no discrete introduced defect found, but behavioral validation is unestablished and product direction remains undecided.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Operators cannot use public GPT-Live through an OpenAI-compatible custom realtime server.
Reason: The patch offers a coherent capability, but it expands an explicitly limited provider contract without recorded owner direction.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this is a focused capability extension that current main lacks, but expanding the deliberately GA-only custom-endpoint contract needs an area-owner decision.

Priority: P2
Reviewed head: fb03c0bc165dc349b2ea0a0cc91162fcd88e57f0
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the existing custom realtime baseUrl contract support public GPT-Live by deriving the sibling /live/sessions endpoint?
  • Recommendation: Approve the narrow extension: Support public gpt-live-1 through the existing operator-configured endpoint and Platform authentication, subject to the contributor proof gate.
  • Why: The earlier merged feature deliberately excluded GPT-Live, and this PR has no recorded area-owner approval for expanding that contract.

Before merge

  • Add real behavior proof - The full PR body and discussion contain no shipped-entry-point execution evidence; the added connection test mocks WebSocket and supplies readiness itself. Provide redacted Gateway-relay logs or terminal output showing the custom /live/sessions connection, non-model query preservation, audio exchange, delegation, and closure, plus fresh-install and stable-upgrade behavior preserving existing GA settings. Redact API keys, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Tests

  • Missing end-to-end proof: Missing proof is a real Gateway-relay custom GPT-Live session with audio and delegation, preserved GA settings after a stable-release upgrade, and demonstrated base-fail/head-pass regression results.
Agent review details

How this fits together

The OpenAI voice plugin translates Talk and backend voice configuration into authenticated provider connections, audio events, transcripts, and agent delegations.

flowchart LR
  A[Talk or backend voice] --> B[OpenAI provider policy]
  B --> C[Platform credential resolver]
  B --> D[Custom endpoint derivation]
  C --> E[Existing GPT-Live bridge]
  D --> E
  E --> F[Custom Live WebSocket server]
Loading

Technical review

Best possible solution:

If approved, retain the existing OpenAI policy owner and reuse both GPT-Live bridges for the narrowly defined sibling-endpoint mapping.

Do we have a high-confidence way to reproduce the issue?

Current-main source deterministically rejects gpt-live-1 when baseUrl is configured; this is an intentional unsupported combination, and no runtime reproduction was run.

Is this the best way to solve the issue?

The implementation is focused and reuses existing authentication, transport, and capability owners without adding configuration keys or persistent state; the endpoint convention needs owner acceptance.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 20b3430fa8bb.

Provenance checked

  • Custom endpoint GPT-Live exclusion changes intended behavior with a stated reason (11e9107: The custom-endpoint feature supported GA Realtime only and rejected other protocols before provider I/O.)
  • Public Live endpoint and Platform authentication keeps the original intent (f093c0e: Public gpt-live-1 requires its own session protocol and Platform authentication, distinct from the subscription route.)
  • Custom endpoint query preservation keeps the original intent (11e9107: Signed endpoint queries must retain non-model parameter escaping.)
  • Provider-owned transport layering keeps the original intent (dac940b: Session policy and transport lifecycle have separate existing owners with shared provider routing.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 7f54c3d adds extensions/openai/realtime-voice-session-policy.ts:83 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 7f54c3d9b04c; files: extensions/openai/realtime-voice-session-policy.ts)

PR surface

Source +95, Tests +74, Docs +25. Total +194 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 124 29 +95
Tests 2 82 8 +74
Docs 1 28 3 +25
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 234 40 +194

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This adds an optional custom-provider voice configuration with limited blast radius and no established urgent regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 20, 2026, 4:46 AM ET / 08:46 UTC.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 28, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: openai P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant