Skip to content

Commit 37cc495

Browse files
authored
fix key (#588)
* fix key * bump version * fix test
1 parent 032c8dd commit 37cc495

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "elevenlabs"
33

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.7.0"
6+
version = "v2.7.1"
77
description = ""
88
readme = "README.md"
99
authors = []

src/elevenlabs/conversational_ai/conversation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, text: str):
5757
self.text = text
5858

5959
def to_dict(self) -> dict:
60-
return {"type": self.type, "content": self.text}
60+
return {"type": self.type, "text": self.text}
6161

6262

6363
class AudioInterface(ABC):

tests/test_convai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,5 @@ def test_conversation_with_contextual_update():
194194
conversation.wait_for_session_end()
195195

196196
# Assertions
197-
expected = json.dumps({"type": "contextual_update", "content": "User appears to be looking at pricing page"})
197+
expected = json.dumps({"type": "contextual_update", "text": "User appears to be looking at pricing page"})
198198
mock_ws.send.assert_any_call(expected)

0 commit comments

Comments
 (0)