File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def __init__(
4747 * ,
4848 base_url : typing .Optional [str ] = None ,
4949 environment : ElevenLabsEnvironment = ElevenLabsEnvironment .PRODUCTION ,
50- api_key : typing . Optional [ str ] = os .getenv ("ELEVENLABS_API_KEY" ),
50+ api_key : str = os .getenv ("ELEVENLABS_API_KEY" ) or OMIT ,
5151 timeout : typing .Optional [float ] = 240 ,
5252 httpx_client : typing .Optional [httpx .Client ] = None
5353 ):
@@ -93,7 +93,7 @@ def __init__(
9393 * ,
9494 base_url : typing .Optional [str ] = None ,
9595 environment : ElevenLabsEnvironment = ElevenLabsEnvironment .PRODUCTION ,
96- api_key : typing . Optional [ str ] = os .getenv ("ELEVENLABS_API_KEY" ),
96+ api_key : str = os .getenv ("ELEVENLABS_API_KEY" ) or OMIT ,
9797 timeout : typing .Optional [float ] = 240 ,
9898 httpx_client : typing .Optional [httpx .AsyncClient ] = None
9999 ):
Original file line number Diff line number Diff line change 1212
1313import websockets
1414from websockets .exceptions import ConnectionClosedOK
15+ from websockets .asyncio .client import ClientConnection
1516from websockets .sync .client import Connection , connect
1617
1718from ..base_client import BaseElevenLabs
@@ -916,7 +917,7 @@ class AsyncConversation(BaseConversation):
916917
917918 _task : Optional [asyncio .Task ]
918919 _should_stop : asyncio .Event
919- _ws : Optional [websockets . WebSocketClientProtocol ]
920+ _ws : Optional [ClientConnection ]
920921
921922 def __init__ (
922923 self ,
You can’t perform that action at this time.
0 commit comments