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/axiomatic/client.py
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
importtyping
4
4
from .environmentimportAxiomaticEnvironment
5
+
importos
5
6
importhttpx
7
+
from .core.api_errorimportApiError
6
8
from .core.client_wrapperimportSyncClientWrapper
7
9
from .requirements.clientimportRequirementsClient
8
10
from .pic.clientimportPicClient
@@ -13,7 +15,6 @@
13
15
from .core.request_optionsimportRequestOptions
14
16
from .core.pydantic_utilitiesimportparse_obj_as
15
17
fromjson.decoderimportJSONDecodeError
16
-
from .core.api_errorimportApiError
17
18
from .core.client_wrapperimportAsyncClientWrapper
18
19
from .requirements.clientimportAsyncRequirementsClient
19
20
from .pic.clientimportAsyncPicClient
@@ -41,7 +42,7 @@ class Axiomatic:
41
42
42
43
43
44
44
-
api_key : str
45
+
api_key : typing.Optional[str]
45
46
timeout : typing.Optional[float]
46
47
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
0 commit comments