Skip to content

Commit c940195

Browse files
feat: clean up convai direct api call (elevenlabs#406)
1 parent 521192b commit c940195

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/elevenlabs/conversational_ai/conversation.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,5 @@ def _get_wss_url(self):
229229
return f"{base_ws_url}/v1/convai/conversation?agent_id={self.agent_id}"
230230

231231
def _get_signed_url(self):
232-
# TODO: Use generated SDK method once available.
233-
response = self.client._client_wrapper.httpx_client.request(
234-
f"v1/convai/conversation/get_signed_url?agent_id={self.agent_id}",
235-
method="GET",
236-
)
237-
return response.json()["signed_url"]
232+
response = self.client.get_signed_url(agent_id=self.agent_id)
233+
return response.signed_url

0 commit comments

Comments
 (0)