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 11# https://www.speakeasy.com/docs/customize/code/monkey-patching
22
3+ # ignore human-written files and directories
4+ src/unstructured_client/_unstructured
35_jupyter
46_sample_docs
57_test_unstructured_client
68
79# ignore Makefile
810Makefile
911
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:
3434 clientServerStatusCodesAsErrors : true
3535 defaultErrorName : SDKError
3636 description : Python Client SDK for Unstructured API
37- enableCustomCodeRegions : true
37+ enableCustomCodeRegions : false
3838 enumFormat : enum
3939 fixFlags :
4040 responseRequiredSep2024 : false
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class PartitionAcceptEnum(str, Enum):
1616
1717
1818class General (BaseSDK ):
19- # region sdk-class-body
2019 def get_default_server_url (self ) -> str :
2120 client_url , * _ = self .sdk_configuration .get_server_details ()
2221 if client_url == SERVERS [SERVER_PLATFORM_API ].rstrip ("/" ):
@@ -25,7 +24,7 @@ def get_default_server_url(self) -> str:
2524 operations .PARTITION_SERVER_SAAS_API
2625 ].rstrip ("/" )
2726 return clean_server_url (client_url )
28- # endregion sdk-class-body
27+
2928 def partition (
3029 self ,
3130 * ,
@@ -49,13 +48,12 @@ def partition(
4948 :param accept_header_override: Override the default accept header for this method
5049 :param http_headers: Additional headers to set or replace on requests.
5150 """
52- # endregion sdk-class-body
5351 base_url = clean_server_url (server_url ) if server_url is not None else self .get_default_server_url ()
5452
5553 url_variables = None
5654 if timeout_ms is None :
5755 timeout_ms = self .sdk_configuration .timeout_ms
58- # endregion sdk-class-body
56+
5957 if not isinstance (request , BaseModel ):
6058 request = utils .unmarshal (request , operations .PartitionRequest )
6159 request = cast (operations .PartitionRequest , request )
You can’t perform that action at this time.
0 commit comments