From 135654a080402578658cf99c9d46a1e1b47228f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 5 Jun 2024 08:08:56 -0700 Subject: [PATCH] transports(daily): move pinlessCallUpdate to public api --- src/pipecat/transports/services/daily.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py index 5ce4a6c84..25989a42c 100644 --- a/src/pipecat/transports/services/daily.py +++ b/src/pipecat/transports/services/daily.py @@ -99,7 +99,7 @@ class DailyTranscriptionSettings(BaseModel): class DailyParams(TransportParams): - api_url: str = "https://api.daily.co" + api_url: str = "https://api.daily.co/v1" api_key: str = "" dialin_settings: DailyDialinSettings | None = None transcription_enabled: bool = False @@ -769,7 +769,7 @@ async def _handle_dialin_ready(self, sip_endpoint: str): async with aiohttp.ClientSession() as session: headers = { "Authorization": f"Bearer {self._params.api_key}", - "Content-Type": "application/x-www-form-urlencoded" + "Content-Type": "application/json" } data = { "callId": self._params.dialin_settings.call_id, @@ -780,7 +780,7 @@ async def _handle_dialin_ready(self, sip_endpoint: str): url = f"{self._params.api_url}/dialin/pinlessCallUpdate" try: - async with session.post(url, headers=headers, data=data, timeout=10) as r: + async with session.post(url, headers=headers, json=data, timeout=10) as r: if r.status != 200: text = await r.text() logger.error(