From 7ee0400c4c8f81bd17046db48ef2d4d5d6d7bee6 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Tue, 24 Feb 2026 21:22:44 -0500 Subject: [PATCH] Remove unnecessary `_model` ivar from Hathora TTS and STT services, using `_settings.model` instead. --- src/pipecat/services/hathora/stt.py | 4 +--- src/pipecat/services/hathora/tts.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pipecat/services/hathora/stt.py b/src/pipecat/services/hathora/stt.py index 84f4116f3..27f1aebfb 100644 --- a/src/pipecat/services/hathora/stt.py +++ b/src/pipecat/services/hathora/stt.py @@ -101,8 +101,6 @@ class HathoraSTTService(SegmentedSTTService): ), **kwargs, ) - - self._model = model self._api_key = api_key or os.getenv("HATHORA_API_KEY") self._base_url = base_url @@ -136,7 +134,7 @@ class HathoraSTTService(SegmentedSTTService): url = f"{self._base_url}" payload = { - "model": self._model, + "model": self._settings.model, } if self._settings.language is not None: diff --git a/src/pipecat/services/hathora/tts.py b/src/pipecat/services/hathora/tts.py index 8d6fb32cb..3fb9e747b 100644 --- a/src/pipecat/services/hathora/tts.py +++ b/src/pipecat/services/hathora/tts.py @@ -120,7 +120,6 @@ class HathoraTTSService(TTSService): ), **kwargs, ) - self._model = model self._api_key = api_key or os.getenv("HATHORA_API_KEY") self._base_url = base_url @@ -149,7 +148,7 @@ class HathoraTTSService(TTSService): url = f"{self._base_url}" - payload = {"model": self._model, "text": text} + payload = {"model": self._settings.model, "text": text} if self._settings.voice is not None: payload["voice"] = self._settings.voice