From f8f0578c3da7fedca3b11c36db65afc2ca93a57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 25 Feb 2025 16:32:16 -0800 Subject: [PATCH] log pipecat version on application startup --- CHANGELOG.md | 3 +++ src/pipecat/__init__.py | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5d3ae6d1..43ab68988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Pipecat version will now be logged on every application startup. This will + help us identify what version we are running in case of any issues. + - Added a new `StopFrame` which can be used to stop a pipeline task while keeping the frame processors running. The frame processors could then be used in a different pipeline. The difference between a `StopFrame` and a diff --git a/src/pipecat/__init__.py b/src/pipecat/__init__.py index e69de29bb..b1a9c7413 100644 --- a/src/pipecat/__init__.py +++ b/src/pipecat/__init__.py @@ -0,0 +1,13 @@ +# +# Copyright (c) 2024–2025, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + +from importlib.metadata import version + +from loguru import logger + +__version__ = version("pipecat-ai") + +logger.info(f"ᓚᘏᗢ Pipecat {__version__} ᓚᘏᗢ")