From 7439ff42559bfab0a03ee775831fa3e39f0b64cc Mon Sep 17 00:00:00 2001 From: Angelo Giacco Date: Wed, 9 Jul 2025 18:06:55 +0100 Subject: [PATCH 1/3] fix key --- src/elevenlabs/conversational_ai/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elevenlabs/conversational_ai/conversation.py b/src/elevenlabs/conversational_ai/conversation.py index c99f8468..ffc25881 100644 --- a/src/elevenlabs/conversational_ai/conversation.py +++ b/src/elevenlabs/conversational_ai/conversation.py @@ -57,7 +57,7 @@ def __init__(self, text: str): self.text = text def to_dict(self) -> dict: - return {"type": self.type, "content": self.text} + return {"type": self.type, "text": self.text} class AudioInterface(ABC): From 0c0d32db89dc501cc027a134a957b2067af61850 Mon Sep 17 00:00:00 2001 From: Angelo Giacco Date: Wed, 9 Jul 2025 18:07:19 +0100 Subject: [PATCH 2/3] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e044b093..51422866 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "elevenlabs" [tool.poetry] name = "elevenlabs" -version = "v2.7.0" +version = "v2.7.1" description = "" readme = "README.md" authors = [] From a18080e38069463018b01696795742bf46f57ce1 Mon Sep 17 00:00:00 2001 From: Angelo Giacco Date: Wed, 9 Jul 2025 18:08:59 +0100 Subject: [PATCH 3/3] fix test --- tests/test_convai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_convai.py b/tests/test_convai.py index bee36928..fc36b09b 100644 --- a/tests/test_convai.py +++ b/tests/test_convai.py @@ -194,5 +194,5 @@ def test_conversation_with_contextual_update(): conversation.wait_for_session_end() # Assertions - expected = json.dumps({"type": "contextual_update", "content": "User appears to be looking at pricing page"}) + expected = json.dumps({"type": "contextual_update", "text": "User appears to be looking at pricing page"}) mock_ws.send.assert_any_call(expected)