Skip to content

Commit f24c812

Browse files
committed
move import
1 parent 54df802 commit f24c812

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elevenlabs/conversational_ai/conversation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import asyncio
77
from concurrent.futures import ThreadPoolExecutor
88
from enum import Enum
9+
import urllib.parse
910

1011
from websockets.sync.client import connect, Connection
1112
import websockets
@@ -328,7 +329,6 @@ def __init__(
328329
self._last_interrupt_id = 0
329330

330331
def _get_wss_url(self):
331-
import urllib.parse
332332
base_http_url = self.client._client_wrapper.get_base_url()
333333
base_ws_url = urllib.parse.urlparse(base_http_url)._replace(scheme="wss" if base_http_url.startswith("https") else "ws").geturl()
334334
# Ensure base URL ends with '/' for proper joining

0 commit comments

Comments
 (0)