File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# https://www.speakeasy.com/docs/customize/code/monkey-patching
2
2
3
+ # ignore human-written files and directories
4
+ src/unstructured_client/_unstructured
3
5
_jupyter
4
6
_sample_docs
5
7
_test_unstructured_client
6
8
7
9
# ignore Makefile
8
10
Makefile
9
11
12
+ # Ignore the general.partition code until we can fix the base_url issue
13
+ src/unstructured_client/general.py
14
+ src/unstructured_client/destinations.py
15
+ src/unstructured_client/sources.py
16
+ src/unstructured_client/jobs.py
17
+ src/unstructured_client/workflows.py
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ python:
34
34
clientServerStatusCodesAsErrors : true
35
35
defaultErrorName : SDKError
36
36
description : Python Client SDK for Unstructured API
37
- enableCustomCodeRegions : true
37
+ enableCustomCodeRegions : false
38
38
enumFormat : enum
39
39
fixFlags :
40
40
responseRequiredSep2024 : false
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class PartitionAcceptEnum(str, Enum):
16
16
17
17
18
18
class General (BaseSDK ):
19
- # region sdk-class-body
20
19
def get_default_server_url (self ) -> str :
21
20
client_url , * _ = self .sdk_configuration .get_server_details ()
22
21
if client_url == SERVERS [SERVER_PLATFORM_API ].rstrip ("/" ):
@@ -25,7 +24,7 @@ def get_default_server_url(self) -> str:
25
24
operations .PARTITION_SERVER_SAAS_API
26
25
].rstrip ("/" )
27
26
return clean_server_url (client_url )
28
- # endregion sdk-class-body
27
+
29
28
def partition (
30
29
self ,
31
30
* ,
@@ -49,13 +48,12 @@ def partition(
49
48
:param accept_header_override: Override the default accept header for this method
50
49
:param http_headers: Additional headers to set or replace on requests.
51
50
"""
52
- # endregion sdk-class-body
53
51
base_url = clean_server_url (server_url ) if server_url is not None else self .get_default_server_url ()
54
52
55
53
url_variables = None
56
54
if timeout_ms is None :
57
55
timeout_ms = self .sdk_configuration .timeout_ms
58
- # endregion sdk-class-body
56
+
59
57
if not isinstance (request , BaseModel ):
60
58
request = utils .unmarshal (request , operations .PartitionRequest )
61
59
request = cast (operations .PartitionRequest , request )
You can’t perform that action at this time.
0 commit comments