From f1a0d547ce6277c8bcb4d796f0553a03dded02bd Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 17 Dec 2025 11:49:54 -0500 Subject: [PATCH] Clean up use of pipecat version --- src/pipecat/services/assemblyai/stt.py | 4 ++-- src/pipecat/services/gladia/stt.py | 4 ++-- src/pipecat/services/hume/tts.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pipecat/services/assemblyai/stt.py b/src/pipecat/services/assemblyai/stt.py index 4467fd134..142125f29 100644 --- a/src/pipecat/services/assemblyai/stt.py +++ b/src/pipecat/services/assemblyai/stt.py @@ -17,7 +17,7 @@ from urllib.parse import urlencode from loguru import logger -from pipecat import __version__ as pipecat_version +from pipecat import version as pipecat_version from pipecat.frames.frames import ( CancelFrame, EndFrame, @@ -254,7 +254,7 @@ class AssemblyAISTTService(WebsocketSTTService): ws_url = self._build_ws_url() headers = { "Authorization": self._api_key, - "User-Agent": f"AssemblyAI/1.0 (integration=Pipecat/{pipecat_version})", + "User-Agent": f"AssemblyAI/1.0 (integration=Pipecat/{pipecat_version()})", } self._websocket = await websocket_connect( ws_url, diff --git a/src/pipecat/services/gladia/stt.py b/src/pipecat/services/gladia/stt.py index e73a4d77a..3866b8a80 100644 --- a/src/pipecat/services/gladia/stt.py +++ b/src/pipecat/services/gladia/stt.py @@ -19,7 +19,7 @@ from typing import Any, AsyncGenerator, Dict, Literal, Optional import aiohttp from loguru import logger -from pipecat import __version__ as pipecat_version +from pipecat import version as pipecat_version from pipecat.frames.frames import ( CancelFrame, EndFrame, @@ -299,7 +299,7 @@ class GladiaSTTService(WebsocketSTTService): # Add custom_metadata if provided settings["custom_metadata"] = dict(self._params.custom_metadata or {}) - settings["custom_metadata"]["pipecat"] = pipecat_version + settings["custom_metadata"]["pipecat"] = pipecat_version() # Add endpointing parameters if provided if self._params.endpointing is not None: diff --git a/src/pipecat/services/hume/tts.py b/src/pipecat/services/hume/tts.py index 38e5b9fd6..ff3035ef7 100644 --- a/src/pipecat/services/hume/tts.py +++ b/src/pipecat/services/hume/tts.py @@ -12,7 +12,7 @@ import httpx from loguru import logger from pydantic import BaseModel -from pipecat import __version__ +from pipecat import version as pipecat_version from pipecat.frames.frames import ( CancelFrame, EndFrame, @@ -43,7 +43,7 @@ HUME_SAMPLE_RATE = 48_000 # Hume TTS streams at 48 kHz # Tracking headers for Hume API requests DEFAULT_HEADERS = { "X-Hume-Client-Name": "pipecat", - "X-Hume-Client-Version": __version__, + "X-Hume-Client-Version": pipecat_version(), }