Skip to content

Commit 01e0f63

Browse files
committed
Address feedback
1 parent 38ed60a commit 01e0f63

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/elevenlabs/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,10 @@ def __init__(
112112
httpx_client: typing.Optional[httpx.Client] = None
113113
):
114114
super().__init__(
115-
environment=base_url
116-
and ElevenLabsEnvironment(
115+
environment=ElevenLabsEnvironment(
117116
base=f"https://{get_base_url_host(base_url)}",
118117
wss=f"wss://{get_base_url_host(base_url)}",
119-
)
120-
or environment,
118+
) if base_url else environment,
121119
api_key=api_key,
122120
timeout=timeout,
123121
httpx_client=httpx_client

0 commit comments

Comments
 (0)