From 7456a0a55f209978825e1b14bf59341e2b859e3b Mon Sep 17 00:00:00 2001 From: mattie ruth backman Date: Thu, 22 Jan 2026 17:00:33 -0500 Subject: [PATCH] Fix the /start and /offer/api proxy endpoints for smallWebRTC to match pipecat cloud behavior WRT requestData --- src/pipecat/runner/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipecat/runner/run.py b/src/pipecat/runner/run.py index 6f7f1b53b..9a280d119 100644 --- a/src/pipecat/runner/run.py +++ b/src/pipecat/runner/run.py @@ -298,7 +298,7 @@ def _setup_webrtc_routes( # Store session info immediately in memory, replicate the behavior expected on Pipecat Cloud session_id = str(uuid.uuid4()) - active_sessions[session_id] = request_data + active_sessions[session_id] = request_data.get("body", {}) result: StartBotResult = {"sessionId": session_id} if request_data.get("enableDefaultIceServers"): @@ -331,7 +331,8 @@ def _setup_webrtc_routes( pc_id=request_data.get("pc_id"), restart_pc=request_data.get("restart_pc"), request_data=request_data.get("request_data") - or request_data.get("requestData"), + or request_data.get("requestData") + or active_session, ) return await offer(webrtc_request, background_tasks) elif request.method == HTTPMethod.PATCH.value: