Fix the /connect endpoint's return value for Daily, WebRTC

This commit is contained in:
Mark Backman
2025-07-25 23:36:23 -04:00
parent acbc045d47
commit eee8cf35b2

View File

@@ -294,10 +294,10 @@ def _create_server_app(transport_type: str, host: str = "localhost", proxy: str
session_args = DailySessionArgs(room_url, token)
asyncio.create_task(bot_module.bot(session_args))
return {"transport": "daily", "room_url": room_url, "token": token}
return {"room_url": room_url, "token": token}
elif transport_type == "webrtc":
return {"transport": "webrtc", "client_url": "/client/"}
return {"client_url": "/client/"}
else:
return {
"error": f"RTVI connect not supported for {transport_type} transport. Use Daily or WebRTC."