diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 457d3272..05d4bf0e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 8b5fa338-9106-4734-abf0-e30d67044a90 management: - docChecksum: 940cbfd3d076c56d2c04a8413abb0e1d - docVersion: 1.1.25 - speakeasyVersion: 1.568.0 - generationVersion: 2.632.2 - releaseVersion: 0.37.2 - configChecksum: c18311f5449d4c3ab52058b6c2ab8715 + docChecksum: b83a55777bc5d3b1bda7cdfe7ee07a04 + docVersion: 1.1.30 + speakeasyVersion: 1.552.0 + generationVersion: 2.610.0 + releaseVersion: 0.37.4 + configChecksum: e25743f343bf001c8363d5a665e685d5 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -16,7 +16,7 @@ features: acceptHeaders: 3.0.0 additionalDependencies: 1.0.0 constsAndDefaults: 1.0.5 - core: 5.19.3 + core: 5.19.0 defaultEnabledRetries: 0.2.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.3.2 @@ -32,7 +32,7 @@ features: openEnums: 1.0.1 responseFormat: 1.0.1 retries: 3.0.2 - sdkHooks: 1.1.0 + sdkHooks: 1.0.1 serverIDs: 3.0.0 unions: 3.0.4 uploadStreams: 1.0.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c9bf4c10..0f215822 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.552.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31 - sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447 + sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd + sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7 tags: - latest - - speakeasy-sdk-regen-1750778809 - - 1.1.25 + - speakeasy-sdk-regen-1751381120 + - 1.1.30 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31 - sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447 + sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd + sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7 codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:a50f51859ef75df1e6875cbaf24765f1fdad97a569e90b04084015fc6a98029c + codeSamplesRevisionDigest: sha256:881506df7bd3dc39018398887eb4b2914e0f22f7be5b7c6418810213af6d1546 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index efadcc94..b7ee2fe0 100755 --- a/README.md +++ b/README.md @@ -410,18 +410,30 @@ Certain SDK methods accept file objects as part of a request body or multi-part ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import shared with UnstructuredClient() as uc_client: - res = uc_client.workflows.run_workflow(request={ - "workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013", + res = uc_client.general.partition(request={ + "partition_parameters": { + "files": { + "content": open("example.file", "rb"), + "file_name": "example.file", + }, + "split_pdf_page_range": [ + 1, + 10, + ], + "vlm_model": shared.VLMModel.GPT_4O, + "vlm_model_provider": shared.VLMModelProvider.OPENAI, + }, }) - assert res.job_information is not None + assert res.elements is not None # Handle response - print(res.job_information) + print(res.elements) ``` diff --git a/RELEASES.md b/RELEASES.md index c7a2affe..7ad11ac7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1028,3 +1028,14 @@ Based on: - [python v0.37.2] . ### Releases - [PyPI v0.37.2] https://pypi.org/project/unstructured-client/0.37.2 - . + + +## 2025-07-01 14:45:04 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.37.4] . +### Releases +- [PyPI v0.37.4] https://pypi.org/project/unstructured-client/0.37.4 - . \ No newline at end of file diff --git a/docs/models/shared/vlmmodel.md b/docs/models/shared/vlmmodel.md index 46c26d1e..0a2e7ab4 100644 --- a/docs/models/shared/vlmmodel.md +++ b/docs/models/shared/vlmmodel.md @@ -13,6 +13,7 @@ The VLM Model to use. | `GEMINI_1_5_PRO` | gemini-1.5-pro | | `US_AMAZON_NOVA_PRO_V1_0` | us.amazon.nova-pro-v1:0 | | `US_AMAZON_NOVA_LITE_V1_0` | us.amazon.nova-lite-v1:0 | +| `US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0` | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | | `US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0` | us.anthropic.claude-3-5-sonnet-20241022-v2:0 | | `US_ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0` | us.anthropic.claude-3-opus-20240229-v1:0 | | `US_ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0` | us.anthropic.claude-3-haiku-20240307-v1:0 | diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 306ba79a..189a833f 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -22,17 +22,14 @@ with UnstructuredClient() as uc_client: res = uc_client.general.partition(request={ "partition_parameters": { - "chunking_strategy": "by_title", "files": { "content": open("example.file", "rb"), "file_name": "example.file", }, - "split_pdf_cache_tmp_data_dir": "", "split_pdf_page_range": [ 1, 10, ], - "strategy": shared.Strategy.AUTO, "vlm_model": shared.VLMModel.GPT_4O, "vlm_model_provider": shared.VLMModelProvider.OPENAI, }, diff --git a/gen.yaml b/gen.yaml index d56f57b0..fa03dd01 100644 --- a/gen.yaml +++ b/gen.yaml @@ -14,7 +14,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.37.3 + version: 0.37.4 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pyproject.toml b/pyproject.toml index 499cf574..e37567cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.37.3" +version = "0.37.4" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" @@ -52,8 +52,6 @@ pythonpath = ["src"] [tool.mypy] disable_error_code = "misc" -explicit_package_bases = true -mypy_path = "src" [[tool.mypy.overrides]] module = "typing_inspect" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index b787dac1..0ed32221 100644 --- a/src/unstructured_client/_version.py +++ b/src/unstructured_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "unstructured-client" -__version__: str = "0.37.2" -__openapi_doc_version__: str = "1.1.25" -__gen_version__: str = "2.632.2" -__user_agent__: str = "speakeasy-sdk/python 0.37.2 2.632.2 1.1.25 unstructured-client" +__version__: str = "0.37.4" +__openapi_doc_version__: str = "1.1.30" +__gen_version__: str = "2.610.0" +__user_agent__: str = "speakeasy-sdk/python 0.37.4 2.610.0 1.1.30 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/models/shared/partition_parameters.py b/src/unstructured_client/models/shared/partition_parameters.py index f6bc59d3..e50ade3a 100644 --- a/src/unstructured_client/models/shared/partition_parameters.py +++ b/src/unstructured_client/models/shared/partition_parameters.py @@ -73,6 +73,9 @@ class VLMModel(str, Enum, metaclass=utils.OpenEnumMeta): GEMINI_1_5_PRO = "gemini-1.5-pro" US_AMAZON_NOVA_PRO_V1_0 = "us.amazon.nova-pro-v1:0" US_AMAZON_NOVA_LITE_V1_0 = "us.amazon.nova-lite-v1:0" + US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0 = ( + "us.anthropic.claude-3-7-sonnet-20250219-v1:0" + ) US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = ( "us.anthropic.claude-3-5-sonnet-20241022-v2:0" )