Skip to content

Commit 08c612c

Browse files
committed
Revert to speakeasy==1.490.0
Regenerate with Serverless VLM params added
1 parent 9bc86b4 commit 08c612c

File tree

23 files changed

+183
-181
lines changed

23 files changed

+183
-181
lines changed

.speakeasy/gen.lock

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: c20df03926ecb29814c3c1c36c99ddae
5-
docVersion: 1.0.68
6-
speakeasyVersion: 1.505.0
7-
generationVersion: 2.531.0
8-
releaseVersion: 0.31.0
9-
configChecksum: faf5191e78f1597b78cd7600af4f1d96
4+
docChecksum: 83f88cfa4bd77e1d3065b11a97119361
5+
docVersion: 1.0.78
6+
speakeasyVersion: 1.490.0
7+
generationVersion: 2.512.0
8+
releaseVersion: 0.35.6
9+
configChecksum: 25ef7f396b3ae9baaa0c7d624b520182
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.12.1
19+
core: 5.11.0
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
@@ -27,11 +27,11 @@ features:
2727
methodServerURLs: 3.1.1
2828
multipartFileContentType: 1.0.0
2929
nameOverrides: 3.0.1
30-
nullables: 1.0.1
30+
nullables: 1.0.0
3131
openEnums: 1.0.0
3232
responseFormat: 1.0.1
3333
retries: 3.0.2
34-
sdkHooks: 1.0.1
34+
sdkHooks: 1.0.0
3535
serverIDs: 3.0.0
3636
unions: 3.0.4
3737
uploadStreams: 1.0.0
@@ -143,6 +143,8 @@ generatedFiles:
143143
- docs/models/shared/outlooksourceconnectorconfiginput.md
144144
- docs/models/shared/outputformat.md
145145
- docs/models/shared/partitionparameters.md
146+
- docs/models/shared/partitionparametersschemasstrategy.md
147+
- docs/models/shared/partitionparametersstrategy.md
146148
- docs/models/shared/postgresdestinationconnectorconfig.md
147149
- docs/models/shared/postgresdestinationconnectorconfiginput.md
148150
- docs/models/shared/qdrantclouddestinationconnectorconfig.md
@@ -536,7 +538,7 @@ examples:
536538
partition:
537539
speakeasy-default-partition:
538540
requestBody:
539-
multipart/form-data: {"chunking_strategy": "by_title", "combine_under_n_chars": null, "content_type": null, "coordinates": false, "encoding": null, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "gz_uncompressed_content_type": null, "hi_res_model_name": null, "include_orig_elements": null, "include_page_breaks": false, "include_slide_notes": true, "max_characters": null, "multipage_sections": true, "new_after_n_chars": null, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "similarity_threshold": null, "split_pdf_allow_failed": false, "split_pdf_cache_tmp_data": false, "split_pdf_cache_tmp_data_dir": "<value>", "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "starting_page_number": null, "strategy": "hi_res", "table_ocr_agent": null, "unique_element_ids": false, "xml_keep_tags": false}
541+
multipart/form-data: {"chunking_strategy": "by_title", "combine_under_n_chars": null, "content_type": null, "coordinates": false, "encoding": null, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "gz_uncompressed_content_type": null, "hi_res_model_name": null, "include_orig_elements": null, "include_page_breaks": false, "include_slide_notes": true, "max_characters": null, "multipage_sections": true, "new_after_n_chars": null, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "similarity_threshold": null, "split_pdf_allow_failed": false, "split_pdf_cache_tmp_data": false, "split_pdf_cache_tmp_data_dir": "<value>", "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "starting_page_number": null, "strategy": "vlm", "table_ocr_agent": null, "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
540542
responses:
541543
"200":
542544
application/json: [{"type": "Title", "element_id": "6aa0ff22f91bbe7e26e8e25ca8052acd", "text": "LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysis", "metadata": {"languages": ["eng"], "page_number": 1, "filename": "layout-parser-paper.pdf", "filetype": "application/pdf"}}]

README.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ from unstructured_client import UnstructuredClient
113113
from unstructured_client.models import shared
114114
from unstructured_client.utils import BackoffStrategy, RetryConfig
115115

116-
117-
with UnstructuredClient(
118-
server_url="https://api.example.com",
119-
) as uc_client:
116+
with UnstructuredClient() as uc_client:
120117

121118
res = uc_client.destinations.create_destination(request={
122119
"create_destination_connector": {
@@ -144,9 +141,7 @@ from unstructured_client import UnstructuredClient
144141
from unstructured_client.models import shared
145142
from unstructured_client.utils import BackoffStrategy, RetryConfig
146143

147-
148144
with UnstructuredClient(
149-
server_url="https://api.example.com",
150145
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
151146
) as uc_client:
152147

@@ -198,10 +193,7 @@ When custom error responses are specified for an operation, the SDK may also rai
198193
from unstructured_client import UnstructuredClient
199194
from unstructured_client.models import errors, shared
200195

201-
202-
with UnstructuredClient(
203-
server_url="https://api.example.com",
204-
) as uc_client:
196+
with UnstructuredClient() as uc_client:
205197
res = None
206198
try:
207199

@@ -333,10 +325,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
333325
from unstructured_client import UnstructuredClient
334326
from unstructured_client.models import shared
335327

336-
337-
with UnstructuredClient(
338-
server_url="https://api.example.com",
339-
) as uc_client:
328+
with UnstructuredClient() as uc_client:
340329

341330
res = uc_client.destinations.create_destination(request={
342331
"create_destination_connector": {
@@ -366,10 +355,7 @@ from unstructured_client import UnstructuredClient
366355
from unstructured_client.models import shared
367356

368357
async def main():
369-
370-
async with UnstructuredClient(
371-
server_url="https://api.example.com",
372-
) as uc_client:
358+
async with UnstructuredClient() as uc_client:
373359

374360
res = await uc_client.destinations.create_destination_async(request={
375361
"create_destination_connector": {
@@ -463,11 +449,9 @@ Certain SDK methods accept file objects as part of a request body or multi-part
463449
464450
```python
465451
from unstructured_client import UnstructuredClient
452+
from unstructured_client.models import shared
466453

467-
468-
with UnstructuredClient(
469-
server_url="https://api.example.com",
470-
) as uc_client:
454+
with UnstructuredClient() as uc_client:
471455

472456
res = uc_client.general.partition(request={
473457
"partition_parameters": {
@@ -479,6 +463,8 @@ with UnstructuredClient(
479463
1,
480464
10,
481465
],
466+
"vlm_model": shared.PartitionParametersStrategy.GPT_4O,
467+
"vlm_model_provider": shared.PartitionParametersSchemasStrategy.OPENAI,
482468
},
483469
})
484470

@@ -500,19 +486,13 @@ The `UnstructuredClient` class implements the context manager protocol and regis
500486
```python
501487
from unstructured_client import UnstructuredClient
502488
def main():
503-
504-
with UnstructuredClient(
505-
server_url="https://api.example.com",
506-
) as uc_client:
489+
with UnstructuredClient() as uc_client:
507490
# Rest of application here...
508491

509492

510493
# Or when using async:
511494
async def amain():
512-
513-
async with UnstructuredClient(
514-
server_url="https://api.example.com",
515-
) as uc_client:
495+
async with UnstructuredClient() as uc_client:
516496
# Rest of application here...
517497
```
518498
<!-- End Resource Management [resource-management] -->
@@ -528,7 +508,7 @@ from unstructured_client import UnstructuredClient
528508
import logging
529509

530510
logging.basicConfig(level=logging.DEBUG)
531-
s = UnstructuredClient(server_url="https://example.com", debug_logger=logging.getLogger("unstructured_client"))
511+
s = UnstructuredClient(debug_logger=logging.getLogger("unstructured_client"))
532512
```
533513
<!-- End Debugging [debug] -->
534514

USAGE.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
from unstructured_client import UnstructuredClient
55
from unstructured_client.models import shared
66

7-
8-
with UnstructuredClient(
9-
server_url="https://api.example.com",
10-
) as uc_client:
7+
with UnstructuredClient() as uc_client:
118

129
res = uc_client.destinations.create_destination(request={
1310
"create_destination_connector": {
@@ -37,10 +34,7 @@ from unstructured_client import UnstructuredClient
3734
from unstructured_client.models import shared
3835

3936
async def main():
40-
41-
async with UnstructuredClient(
42-
server_url="https://api.example.com",
43-
) as uc_client:
37+
async with UnstructuredClient() as uc_client:
4438

4539
res = await uc_client.destinations.create_destination_async(request={
4640
"create_destination_connector": {

0 commit comments

Comments
 (0)