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 = [] 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): 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)