You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/deepgram/base_client.py
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
importhttpx
9
9
from .core.api_errorimportApiError
10
10
from .core.client_wrapperimportAsyncClientWrapper, SyncClientWrapper
11
+
from .core.loggingimportLogConfig, Logger
11
12
from .environmentimportDeepgramClientEnvironment
12
13
13
14
iftyping.TYPE_CHECKING:
@@ -48,6 +49,9 @@ class BaseClient:
48
49
httpx_client : typing.Optional[httpx.Client]
49
50
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
Configure logging for the SDK. Accepts a LogConfig dict with 'level' (debug/info/warn/error), 'logger' (custom logger implementation), and 'silent' (boolean, defaults to True) fields. You can also pass a pre-configured Logger instance.
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
Configure logging for the SDK. Accepts a LogConfig dict with 'level' (debug/info/warn/error), 'logger' (custom logger implementation), and 'silent' (boolean, defaults to True) fields. You can also pass a pre-configured Logger instance.
0 commit comments