|
| 1 | +diff --git a/src/unstructured_client/general.py b/src/unstructured_client/general.py |
| 2 | +index 3b8af5f..05f0962 100644 |
| 3 | +--- a/src/unstructured_client/general.py |
| 4 | ++++ b/src/unstructured_client/general.py |
| 5 | +@@ -11,8 +11,9 @@ class General(BaseSDK): |
| 6 | + |
| 7 | + |
| 8 | + def partition( |
| 9 | +- self, *, |
| 10 | ++ self, |
| 11 | + request: Union[operations.PartitionRequest, operations.PartitionRequestTypedDict], |
| 12 | ++ *, |
| 13 | + retries: OptionalNullable[utils.RetryConfig] = UNSET, |
| 14 | + server_url: Optional[str] = None, |
| 15 | + timeout_ms: Optional[int] = None, |
| 16 | +diff --git a/src/unstructured_client/models/operations/partition.py b/src/unstructured_client/models/operations/partition.py |
| 17 | +index 465bc3a..a537a13 100644 |
| 18 | +--- a/src/unstructured_client/models/operations/partition.py |
| 19 | ++++ b/src/unstructured_client/models/operations/partition.py |
| 20 | +@@ -19,6 +19,9 @@ class PartitionRequestTypedDict(TypedDict): |
| 21 | + class PartitionRequest(BaseModel): |
| 22 | + partition_parameters: Annotated[shared_partition_parameters.PartitionParameters, FieldMetadata(request=RequestMetadata(media_type="multipart/form-data"))] |
| 23 | + unstructured_api_key: Annotated[OptionalNullable[str], pydantic.Field(alias="unstructured-api-key"), FieldMetadata(header=HeaderMetadata(style="simple", explode=False))] = UNSET |
| 24 | ++ |
| 25 | ++ def __init__(self, partition_parameters, **kwargs): |
| 26 | ++ BaseModel.__init__(self, partition_parameters=partition_parameters, **kwargs) |
| 27 | + |
| 28 | + @model_serializer(mode="wrap") |
| 29 | + def serialize_model(self, handler): |
0 commit comments