Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.4
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 29, 2023
1 parent a93c2f3 commit 8394dd1
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 14 deletions.
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,14 @@ Based on:
### Generated
- [python v0.7.0] .
### Releases
- [PyPI v0.7.0] https://pypi.org/project/unstructured-client/0.7.0 - .
- [PyPI v0.7.0] https://pypi.org/project/unstructured-client/0.7.0 - .

## 2023-09-29 16:24:58
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.91.4 (2.139.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.1] .
### Releases
- [PyPI v0.7.1] https://pypi.org/project/unstructured-client/0.7.1 - .
6 changes: 5 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ s = unstructured_client.UnstructuredClient(
)

req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
coordinates=False,
encoding='utf-8',
files=shared.PartitionParametersFiles(
Expand All @@ -21,9 +23,11 @@ req = shared.PartitionParameters(
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
include_page_breaks=False,
ocr_languages=[
languages=[
'eng',
],
multipage_sections=False,
new_after_n_chars=1500,
output_format='application/json',
pdf_infer_table_structure=False,
skip_infer_table_types=[
Expand Down
6 changes: 5 additions & 1 deletion docs/models/shared/partitionparameters.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ s = unstructured_client.UnstructuredClient(
)

req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
coordinates=False,
encoding='utf-8',
files=shared.PartitionParametersFiles(
Expand All @@ -31,9 +33,11 @@ req = shared.PartitionParameters(
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
include_page_breaks=False,
ocr_languages=[
languages=[
'eng',
],
multipage_sections=False,
new_after_n_chars=1500,
output_format='application/json',
pdf_infer_table_structure=False,
skip_infer_table_types=[
Expand Down
9 changes: 4 additions & 5 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
configVersion: 1.0.0
management:
docChecksum: f332d5b484fbeb4689b0c548694f5a69
docChecksum: db54a5de41d76029233468ef472c9676
docVersion: 0.0.1
speakeasyVersion: 1.91.3
generationVersion: 2.139.1
speakeasyVersion: 1.91.4
generationVersion: 2.139.2
generation:
comments:
disableComments: false
Expand All @@ -19,12 +19,11 @@ features:
examples: 2.81.2
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
ignores: 2.81.1
nameOverrides: 2.81.1
retries: 2.82.0
serverIDs: 2.81.1
python:
version: 0.7.0
version: 0.7.1
author: Unstructured
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="unstructured-client",
version="0.7.0",
version="0.7.1",
author="Unstructured",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
10 changes: 9 additions & 1 deletion src/unstructured_client/models/shared/partition_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class PartitionParametersFiles:

@dataclasses.dataclass
class PartitionParameters:
chunking_strategy: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'chunking_strategy' }})
r"""Use one of the supported strategies to chunk the returned elements. Currently supports: by_title"""
combine_under_n_chars: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'combine_under_n_chars' }})
r"""If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500"""
coordinates: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'coordinates' }})
r"""If true, return coordinates for each element. Default: false"""
encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }})
Expand All @@ -29,8 +33,12 @@ class PartitionParameters:
r"""The name of the inference model used when strategy is hi_res"""
include_page_breaks: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'include_page_breaks' }})
r"""If True, the output will include page breaks if the filetype supports it. Default: false"""
ocr_languages: Optional[list[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'ocr_languages' }})
languages: Optional[list[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'languages' }})
r"""The languages present in the document, for use in partitioning and/or OCR"""
multipage_sections: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'multipage_sections' }})
r"""If chunking strategy is set, determines if sections can span multiple sections. Default: true"""
new_after_n_chars: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'new_after_n_chars' }})
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500"""
output_format: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'output_format' }})
r"""The format of the response. Supported formats are application/json and text/csv. Default: application/json."""
pdf_infer_table_structure: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'pdf_infer_table_structure' }})
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class SDKConfiguration:
server: str = ''
language: str = 'python'
openapi_doc_version: str = '0.0.1'
sdk_version: str = '0.7.0'
gen_version: str = '2.139.1'
user_agent: str = 'speakeasy-sdk/python 0.7.0 2.139.1 0.0.1 unstructured-client'
sdk_version: str = '0.7.1'
gen_version: str = '2.139.2'
user_agent: str = 'speakeasy-sdk/python 0.7.1 2.139.2 0.0.1 unstructured-client'
retry_config: RetryConfig = None

def get_server_details(self) -> tuple[str, dict[str, str]]:
Expand Down

0 comments on commit 8394dd1

Please sign in to comment.