Skip to content

Commit 6553ee0

Browse files
committed
Revert "i am just testing"
This reverts commit 9639062.
1 parent 9639062 commit 6553ee0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.genignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
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
810
Makefile
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

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/unstructured_client/general.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class PartitionAcceptEnum(str, Enum):
1616

1717

1818
class 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)

0 commit comments

Comments
 (0)