File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def __init__(
6767
6868 @property
6969 def speech_engine (self ) -> SpeechEngineClient :
70- return self ._speech_engine
70+ return typing . cast ( SpeechEngineClient , self ._speech_engine )
7171
7272
7373class AsyncElevenLabs (AsyncBaseElevenLabs ):
@@ -117,4 +117,4 @@ def __init__(
117117
118118 @property
119119 def speech_engine (self ) -> AsyncSpeechEngineClient :
120- return self ._speech_engine
120+ return typing . cast ( AsyncSpeechEngineClient , self ._speech_engine )
Original file line number Diff line number Diff line change 11import typing
22
3+ from .core import RequestOptions
34from .speech_engine .client import AsyncSpeechEngineClient as AutogeneratedAsyncSpeechEngineClient
45from .speech_engine .client import SpeechEngineClient as AutogeneratedSpeechEngineClient
56from .speech_engine .resource import SpeechEngineResource
6- from .core import RequestOptions
77
88
99class SpeechEngineClient (AutogeneratedSpeechEngineClient ):
@@ -26,7 +26,7 @@ def get( # type: ignore[override]
2626 super ().get (speech_engine_id , request_options = request_options )
2727 return SpeechEngineResource (
2828 engine_id = speech_engine_id ,
29- client_wrapper = self ._client_wrapper ,
29+ client_wrapper = self ._raw_client . _client_wrapper ,
3030 )
3131
3232
@@ -50,5 +50,5 @@ async def get( # type: ignore[override]
5050 await super ().get (speech_engine_id , request_options = request_options )
5151 return SpeechEngineResource (
5252 engine_id = speech_engine_id ,
53- client_wrapper = self ._client_wrapper ,
53+ client_wrapper = self ._raw_client . _client_wrapper ,
5454 )
You can’t perform that action at this time.
0 commit comments