Skip to content

Commit 9da8865

Browse files
authored
Merge pull request #8 from Unstructured-IO/speakeasy-sdk-regen-1698797967
chore: speakeasy sdk regeneration - Generate
2 parents 0f9a017 + 2ec4f71 commit 9da8865

File tree

9 files changed

+25
-12
lines changed

9 files changed

+25
-12
lines changed

Diff for: README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ s = unstructured_client.UnstructuredClient(
104104

105105
<!-- Start Custom HTTP Client -->
106106
# Custom HTTP Client
107-
107+
108108
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
109109

110110

@@ -118,8 +118,6 @@ http_client = requests.Session()
118118
http_client.headers.update({'x-custom-header': 'someValue'})
119119
s = unstructured_client.UnstructuredClient(client: http_client)
120120
```
121-
122-
123121
<!-- End Custom HTTP Client -->
124122

125123
<!-- Placeholder for Future Speakeasy SDK Sections -->

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,14 @@ Based on:
224224
### Generated
225225
- [python v0.12.1] .
226226
### Releases
227-
- [PyPI v0.12.1] https://pypi.org/project/unstructured-client/0.12.1 - .
227+
- [PyPI v0.12.1] https://pypi.org/project/unstructured-client/0.12.1 - .
228+
229+
## 2023-11-01 00:19:24
230+
### Changes
231+
Based on:
232+
- OpenAPI Doc 0.0.1
233+
- Speakeasy CLI 1.109.2 (2.173.0) https://github.com/speakeasy-api/speakeasy
234+
### Generated
235+
- [python v0.12.2] .
236+
### Releases
237+
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .

Diff for: USAGE.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ req = shared.PartitionParameters(
2626
'g',
2727
']',
2828
],
29+
max_characters=1500,
2930
new_after_n_chars=1500,
3031
output_format='application/json',
3132
skip_infer_table_types=[

Diff for: docs/models/shared/partitionparameters.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
1515
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
1616
| `languages` | List[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | [eng] |
17+
| `max_characters` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars (hard max). Default: 1500 | 1500 |
1718
| `multipage_sections` | *Optional[bool]* | :heavy_minus_sign: | If chunking strategy is set, determines if sections can span multiple sections. Default: true | |
18-
| `new_after_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500 | 1500 |
19+
| `new_after_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars (soft max). Default: 1500 | 1500 |
1920
| `output_format` | *Optional[str]* | :heavy_minus_sign: | The format of the response. Supported formats are application/json and text/csv. Default: application/json. | application/json |
2021
| `pdf_infer_table_structure` | *Optional[bool]* | :heavy_minus_sign: | If True and strategy=hi_res, any Table Elements extracted from a PDF will include an additional metadata field, 'text_as_html', where the value (string) is a just a transformation of the data into an HTML <table>. | |
2122
| `skip_infer_table_types` | List[*str*] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | pdf |

Diff for: docs/sdks/general/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ req = shared.PartitionParameters(
3636
'g',
3737
']',
3838
],
39+
max_characters=1500,
3940
new_after_n_chars=1500,
4041
output_format='application/json',
4142
skip_infer_table_types=[

Diff for: gen.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 25324f1821b1070aa4a416ec8ddca590
3+
docChecksum: bf57420eebd40f2b1d166092f01e3927
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.109.0
5+
speakeasyVersion: 1.109.2
66
generationVersion: 2.173.0
77
generation:
88
comments:
@@ -23,7 +23,7 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
python:
26-
version: 0.12.1
26+
version: 0.12.2
2727
author: Unstructured
2828
clientServerStatusCodesAsErrors: true
2929
description: Python Client SDK for Unstructured API

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.12.1",
13+
version="0.12.2",
1414
author="Unstructured",
1515
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,

Diff for: src/unstructured_client/models/shared/partition_parameters.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ class PartitionParameters:
3333
r"""If True, the output will include page breaks if the filetype supports it. Default: false"""
3434
languages: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'languages' }})
3535
r"""The languages present in the document, for use in partitioning and/or OCR"""
36+
max_characters: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'max_characters' }})
37+
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars (hard max). Default: 1500"""
3638
multipage_sections: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'multipage_sections' }})
3739
r"""If chunking strategy is set, determines if sections can span multiple sections. Default: true"""
3840
new_after_n_chars: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'new_after_n_chars' }})
39-
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500"""
41+
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars (soft max). Default: 1500"""
4042
output_format: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'output_format' }})
4143
r"""The format of the response. Supported formats are application/json and text/csv. Default: application/json."""
4244
pdf_infer_table_structure: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'pdf_infer_table_structure' }})

Diff for: src/unstructured_client/sdkconfiguration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class SDKConfiguration:
2626
server: str = ''
2727
language: str = 'python'
2828
openapi_doc_version: str = '0.0.1'
29-
sdk_version: str = '0.12.1'
29+
sdk_version: str = '0.12.2'
3030
gen_version: str = '2.173.0'
31-
user_agent: str = 'speakeasy-sdk/python 0.12.1 2.173.0 0.0.1 unstructured-client'
31+
user_agent: str = 'speakeasy-sdk/python 0.12.2 2.173.0 0.0.1 unstructured-client'
3232
retry_config: RetryConfig = None
3333

3434
def get_server_details(self) -> Tuple[str, Dict[str, str]]:

0 commit comments

Comments
 (0)