@@ -76,73 +76,11 @@ sdk.general.partition({
7676<!-- End Dev Containers -->
7777
7878
79+ <!-- No SDK Example Usage -->
7980
80- ## SDK Example Usage
81- <!-- Start SDK Example Usage -->
82- ``` typescript
83- import { UnstructuredClient } from " unstructured-client" ;
84- import { PartitionResponse } from " unstructured-client/dist/sdk/models/operations" ;
85-
86- const sdk = new UnstructuredClient ({
87- security: {
88- apiKeyAuth: " YOUR_API_KEY" ,
89- },
90- });
91-
92- sdk .general .partition ({
93- chunkingStrategy: " by_title" ,
94- combineUnderNChars: 500 ,
95- coordinates: false ,
96- encoding: " utf-8" ,
97- files: {
98- content: " +WmI5Q)|yy" as bytes <<<>>>,
99- files: " um" ,
100- },
101- gzUncompressedContentType: " application/pdf" ,
102- hiResModelName: " yolox" ,
103- includePageBreaks: false ,
104- languages: [
105- " eng" ,
106- ],
107- multipageSections: false ,
108- newAfterNChars: 1500 ,
109- outputFormat: " application/json" ,
110- pdfInferTableStructure: false ,
111- skipInferTableTypes: [
112- " pdf" ,
113- ],
114- strategy: " hi_res" ,
115- xmlKeepTags: false ,
116- }).then ((res : PartitionResponse ) => {
117- if (res .statusCode == 200 ) {
118- // handle response
119- }
120- });
121- ```
122- <!-- End SDK Example Usage -->
123-
124-
125-
126- <!-- Start SDK Available Operations -->
127- ## Available Resources and Operations
128-
129-
130- ### [ general] ( docs/sdks/general/README.md )
131-
132- * [ partition] ( docs/sdks/general/README.md#partition ) - Pipeline 1
133- <!-- End SDK Available Operations -->
134-
135-
136-
137- <!-- Start Pagination -->
138- # Pagination
139-
140- Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
141- returned response object will have a ` next ` method that can be called to pull down the next group of results. If the
142- return value of ` next ` is ` null ` , then there are no more pages to be fetched.
81+ <!-- No SDK Available Operations -->
14382
144- Here's an example of one such pagination call:
145- <!-- End Pagination -->
83+ <!-- No Pagination -->
14684
14785<!-- Placeholder for Future Speakeasy SDK Sections -->
14886
0 commit comments