From 7390e42f5c9ae3e6618ff2327282fc8a008d1326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 11 Jun 2024 18:51:32 -0700 Subject: [PATCH] transports(daily): DailyRoomProperties now allow extra unknown parameters --- CHANGELOG.md | 2 ++ src/pipecat/transports/services/helpers/daily_rest.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c4642684..0cbb495f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- `daily_rest.DailyRoomProperties` now allows extra unknown parameters. + - Added `DeepgramSTTService`. This service has an ongoing websocket connection. To handle this, it subclasses `AIService` instead of `STTService`. The output of this service will be pushed from the same task, diff --git a/src/pipecat/transports/services/helpers/daily_rest.py b/src/pipecat/transports/services/helpers/daily_rest.py index 31ee03e6b..35786f62b 100644 --- a/src/pipecat/transports/services/helpers/daily_rest.py +++ b/src/pipecat/transports/services/helpers/daily_rest.py @@ -25,7 +25,7 @@ class DailyRoomSipParams(BaseModel): num_endpoints: int = 1 -class DailyRoomProperties(BaseModel): +class DailyRoomProperties(BaseModel, extra="allow"): exp: float = time() + 5 * 60 enable_chat: bool = False enable_emoji_reactions: bool = False