Fixed an issue in the runner's proxy_request where a session that exists but has empty data was being treated as invalid.

This commit is contained in:
Filipi Fuchter
2025-10-21 11:41:52 -03:00
parent b3e54546ac
commit 2f92cb8781

View File

@@ -309,7 +309,7 @@ def _setup_webrtc_routes(
):
"""Mimic Pipecat Cloud's proxy."""
active_session = active_sessions.get(session_id)
if not active_session:
if active_session is None:
return Response(content="Invalid or not-yet-ready session_id", status_code=404)
if path.endswith("api/offer"):