From 5640bd94471969458b6b315980f5c2a376423835 Mon Sep 17 00:00:00 2001 From: Paul Vilchez Date: Sun, 20 Oct 2024 03:33:13 -0400 Subject: [PATCH] Fixing a config mismatch which caused usage stats to only report when `enable_metrics` was true. --- CHANGELOG.md | 7 +++++++ src/pipecat/pipeline/task.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e034a7a61..03aa452b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to **Pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fixed `enable_usage_metrics` to control LLM/TTS usage metrics separately + from `enable_metrics`. + ## [0.0.46] - 2024-10-19 ### Added diff --git a/src/pipecat/pipeline/task.py b/src/pipecat/pipeline/task.py index 1b2d67ea9..e34ccae1b 100644 --- a/src/pipecat/pipeline/task.py +++ b/src/pipecat/pipeline/task.py @@ -156,7 +156,7 @@ class PipelineTask: start_frame = StartFrame( allow_interruptions=self._params.allow_interruptions, enable_metrics=self._params.enable_metrics, - enable_usage_metrics=self._params.enable_metrics, + enable_usage_metrics=self._params.enable_usage_metrics, report_only_initial_ttfb=self._params.report_only_initial_ttfb, clock=self._clock, )