fix: add support for DAILY_SAMPLE_ROOM_URL when calling /start for DailyTransport

This commit is contained in:
Mark Backman
2025-10-22 16:48:30 -04:00
parent 54691ee781
commit 60e9817f16
2 changed files with 12 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `aws_sdk_bedrock_runtime` to v0.1.1 to resolve potential CPU issues
when running `AWSNovaSonicLLMService`.
### Fixed
- Fixed an issue in the runner where starting a DailyTransport room via
`/start` didn't support using the `DAILY_SAMPLE_ROOM_URL` env var.
## [0.0.91] - 2025-10-21
### Added

View File

@@ -573,8 +573,14 @@ def _setup_daily_routes(app: FastAPI):
bot_module = _get_bot_module()
existing_room_url = os.getenv("DAILY_SAMPLE_ROOM_URL")
result = None
if create_daily_room:
# Configure room if:
# 1. Explicitly requested via createDailyRoom in payload
# 2. Using pre-configured room from DAILY_SAMPLE_ROOM_URL env var
if create_daily_room or existing_room_url:
import aiohttp
from pipecat.runner.daily import configure