Skip to content

Commit

Permalink
feat: clean up convai direct api call
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Nov 29, 2024
1 parent 521192b commit e8baf1a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/elevenlabs/conversational_ai/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,5 @@ def _get_wss_url(self):
return f"{base_ws_url}/v1/convai/conversation?agent_id={self.agent_id}"

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

0 comments on commit e8baf1a

Please sign in to comment.