@@ -13,6 +13,18 @@ export class PartitionParametersFiles extends SpeakeasyBase {
1313}
1414
1515export class PartitionParameters extends SpeakeasyBase {
16+ /**
17+ * Use one of the supported strategies to chunk the returned elements. Currently supports: by_title
18+ */
19+ @SpeakeasyMetadata ( { data : "multipart_form, name=chunking_strategy" } )
20+ chunkingStrategy ?: string ;
21+
22+ /**
23+ * If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500
24+ */
25+ @SpeakeasyMetadata ( { data : "multipart_form, name=combine_under_n_chars" } )
26+ combineUnderNChars ?: number ;
27+
1628 /**
1729 * If true, return coordinates for each element. Default: false
1830 */
@@ -52,8 +64,20 @@ export class PartitionParameters extends SpeakeasyBase {
5264 /**
5365 * The languages present in the document, for use in partitioning and/or OCR
5466 */
55- @SpeakeasyMetadata ( { data : "multipart_form, name=ocr_languages" } )
56- ocrLanguages ?: string [ ] ;
67+ @SpeakeasyMetadata ( { data : "multipart_form, name=languages" } )
68+ languages ?: string [ ] ;
69+
70+ /**
71+ * If chunking strategy is set, determines if sections can span multiple sections. Default: true
72+ */
73+ @SpeakeasyMetadata ( { data : "multipart_form, name=multipage_sections" } )
74+ multipageSections ?: boolean ;
75+
76+ /**
77+ * If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500
78+ */
79+ @SpeakeasyMetadata ( { data : "multipart_form, name=new_after_n_chars" } )
80+ newAfterNChars ?: number ;
5781
5882 /**
5983 * The format of the response. Supported formats are application/json and text/csv. Default: application/json.
0 commit comments