We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54df802 commit f24c812Copy full SHA for f24c812
1 file changed
src/elevenlabs/conversational_ai/conversation.py
@@ -6,6 +6,7 @@
6
import asyncio
7
from concurrent.futures import ThreadPoolExecutor
8
from enum import Enum
9
+import urllib.parse
10
11
from websockets.sync.client import connect, Connection
12
import websockets
@@ -328,7 +329,6 @@ def __init__(
328
329
self._last_interrupt_id = 0
330
331
def _get_wss_url(self):
- import urllib.parse
332
base_http_url = self.client._client_wrapper.get_base_url()
333
base_ws_url = urllib.parse.urlparse(base_http_url)._replace(scheme="wss" if base_http_url.startswith("https") else "ws").geturl()
334
# Ensure base URL ends with '/' for proper joining
0 commit comments