From 670b2ae6538647682b8626360ab1f6cfb7731fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Fri, 1 Nov 2024 18:52:49 -0700 Subject: [PATCH 1/2] fix: IndexError on tts metrics (#1028) --- .changeset/unlucky-bananas-run.md | 5 +++++ livekit-agents/livekit/agents/tts/tts.py | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/unlucky-bananas-run.md diff --git a/.changeset/unlucky-bananas-run.md b/.changeset/unlucky-bananas-run.md new file mode 100644 index 0000000000..ef5e291681 --- /dev/null +++ b/.changeset/unlucky-bananas-run.md @@ -0,0 +1,5 @@ +--- +"livekit-agents": patch +--- + +fix: IndexError on tts metrics diff --git a/livekit-agents/livekit/agents/tts/tts.py b/livekit-agents/livekit/agents/tts/tts.py index e4c7b453ee..5502014f7b 100644 --- a/livekit-agents/livekit/agents/tts/tts.py +++ b/livekit-agents/livekit/agents/tts/tts.py @@ -176,6 +176,9 @@ def _emit_metrics(): nonlocal start_time, audio_duration, ttfb, request_id duration = time.perf_counter() - start_time + if not self._mtc_pending_texts: + return + text = self._mtc_pending_texts.pop(0) if not text: return From 75c7f82056cceedd42d23bc82cfd939dd25b08be Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 2 Nov 2024 01:53:17 +0000 Subject: [PATCH 2/2] Version Packages --- .changeset/heavy-turtles-rule.md | 5 ----- .changeset/neat-islands-drum.md | 6 ------ .changeset/unlucky-bananas-run.md | 5 ----- examples/participant-entrypoint/requirements.txt | 2 +- examples/simple-color/requirements.txt | 2 +- examples/speech-to-text/requirements.txt | 2 +- examples/text-to-speech/requirements.txt | 2 +- examples/voice-pipeline-agent/requirements.txt | 2 +- livekit-agents/CHANGELOG.md | 10 ++++++++++ livekit-agents/livekit/agents/version.py | 2 +- livekit-agents/package.json | 2 +- livekit-plugins/livekit-plugins-anthropic/CHANGELOG.md | 6 ++++++ .../livekit/plugins/anthropic/version.py | 2 +- livekit-plugins/livekit-plugins-anthropic/package.json | 2 +- 14 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 .changeset/heavy-turtles-rule.md delete mode 100644 .changeset/neat-islands-drum.md delete mode 100644 .changeset/unlucky-bananas-run.md diff --git a/.changeset/heavy-turtles-rule.md b/.changeset/heavy-turtles-rule.md deleted file mode 100644 index 20fbae71d0..0000000000 --- a/.changeset/heavy-turtles-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-agents": patch ---- - -Fix stack dump on closed stream diff --git a/.changeset/neat-islands-drum.md b/.changeset/neat-islands-drum.md deleted file mode 100644 index 6a5fff91f1..0000000000 --- a/.changeset/neat-islands-drum.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"livekit-plugins-anthropic": patch -"livekit-agents": patch ---- - -fix: invalid request on anthropic diff --git a/.changeset/unlucky-bananas-run.md b/.changeset/unlucky-bananas-run.md deleted file mode 100644 index ef5e291681..0000000000 --- a/.changeset/unlucky-bananas-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-agents": patch ---- - -fix: IndexError on tts metrics diff --git a/examples/participant-entrypoint/requirements.txt b/examples/participant-entrypoint/requirements.txt index 246b17f312..1280e2d5b2 100644 --- a/examples/participant-entrypoint/requirements.txt +++ b/examples/participant-entrypoint/requirements.txt @@ -1,2 +1,2 @@ -livekit-agents>=0.11.0 +livekit-agents>=0.11.1 python-dotenv~=1.0 diff --git a/examples/simple-color/requirements.txt b/examples/simple-color/requirements.txt index 246b17f312..1280e2d5b2 100644 --- a/examples/simple-color/requirements.txt +++ b/examples/simple-color/requirements.txt @@ -1,2 +1,2 @@ -livekit-agents>=0.11.0 +livekit-agents>=0.11.1 python-dotenv~=1.0 diff --git a/examples/speech-to-text/requirements.txt b/examples/speech-to-text/requirements.txt index a487e76eca..3860f0c895 100644 --- a/examples/speech-to-text/requirements.txt +++ b/examples/speech-to-text/requirements.txt @@ -1,3 +1,3 @@ -livekit-agents>=0.11.0 +livekit-agents>=0.11.1 livekit-plugins-deepgram>=0.6.9 python-dotenv~=1.0 diff --git a/examples/text-to-speech/requirements.txt b/examples/text-to-speech/requirements.txt index 0aa353ba34..d315a4a89c 100644 --- a/examples/text-to-speech/requirements.txt +++ b/examples/text-to-speech/requirements.txt @@ -1,4 +1,4 @@ -livekit-agents>=0.11.0 +livekit-agents>=0.11.1 livekit-plugins-openai>=0.10.5 livekit-plugins-cartesia>=0.4.3 livekit-plugins-elevenlabs>=0.7.6 diff --git a/examples/voice-pipeline-agent/requirements.txt b/examples/voice-pipeline-agent/requirements.txt index fdb99f1a32..be4184d949 100644 --- a/examples/voice-pipeline-agent/requirements.txt +++ b/examples/voice-pipeline-agent/requirements.txt @@ -1,4 +1,4 @@ -livekit-agents>=0.11.0 +livekit-agents>=0.11.1 livekit-plugins-openai>=0.10.5 livekit-plugins-deepgram>=0.6.9 livekit-plugins-silero>=0.7.3 diff --git a/livekit-agents/CHANGELOG.md b/livekit-agents/CHANGELOG.md index 2998723e48..d17ab84317 100644 --- a/livekit-agents/CHANGELOG.md +++ b/livekit-agents/CHANGELOG.md @@ -1,5 +1,15 @@ # livekit-agents +## 0.11.1 + +### Patch Changes + +- Fix stack dump on closed stream - [#1023](https://github.com/livekit/agents/pull/1023) ([@martin-purplefish](https://github.com/martin-purplefish)) + +- fix: invalid request on anthropic - [#1018](https://github.com/livekit/agents/pull/1018) ([@theomonnom](https://github.com/theomonnom)) + +- fix: IndexError on tts metrics - [#1028](https://github.com/livekit/agents/pull/1028) ([@theomonnom](https://github.com/theomonnom)) + ## 0.11.0 ### Minor Changes diff --git a/livekit-agents/livekit/agents/version.py b/livekit-agents/livekit/agents/version.py index 4bfddb5c74..c3de13f903 100644 --- a/livekit-agents/livekit/agents/version.py +++ b/livekit-agents/livekit/agents/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.11.0" +__version__ = "0.11.1" diff --git a/livekit-agents/package.json b/livekit-agents/package.json index 54fcbf9a02..f36d5e5063 100644 --- a/livekit-agents/package.json +++ b/livekit-agents/package.json @@ -1,5 +1,5 @@ { "name": "livekit-agents", "private": true, - "version": "0.11.0" + "version": "0.11.1" } diff --git a/livekit-plugins/livekit-plugins-anthropic/CHANGELOG.md b/livekit-plugins/livekit-plugins-anthropic/CHANGELOG.md index e6a3c4aefe..90c8de959a 100644 --- a/livekit-plugins/livekit-plugins-anthropic/CHANGELOG.md +++ b/livekit-plugins/livekit-plugins-anthropic/CHANGELOG.md @@ -1,5 +1,11 @@ # livekit-plugins-anthropic +## 0.2.3 + +### Patch Changes + +- fix: invalid request on anthropic - [#1018](https://github.com/livekit/agents/pull/1018) ([@theomonnom](https://github.com/theomonnom)) + ## 0.2.2 ### Patch Changes diff --git a/livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/version.py b/livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/version.py index 2985d9da1c..0f3f2ddd48 100644 --- a/livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/version.py +++ b/livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.2.2" +__version__ = "0.2.3" diff --git a/livekit-plugins/livekit-plugins-anthropic/package.json b/livekit-plugins/livekit-plugins-anthropic/package.json index 19dbd0e1b3..c58fd39a46 100644 --- a/livekit-plugins/livekit-plugins-anthropic/package.json +++ b/livekit-plugins/livekit-plugins-anthropic/package.json @@ -1,5 +1,5 @@ { "name": "livekit-plugins-anthropic", "private": true, - "version": "0.2.2" + "version": "0.2.3" }