@docling/docling-client 2.151.1 → 2.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PYTHON_CLIENT_PARITY.md +23 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/PYTHON_CLIENT_PARITY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Python client parity
|
|
2
2
|
|
|
3
|
-
This document compares `@docling/docling-client` with Docling Python 2.
|
|
4
|
-
at commit `
|
|
3
|
+
This document compares `@docling/docling-client` with Docling Python 2.152.0
|
|
4
|
+
at commit `311b683`, specifically:
|
|
5
5
|
|
|
6
6
|
- `DoclingServiceClient`
|
|
7
7
|
- `AsyncDoclingServiceClient`
|
|
@@ -160,6 +160,27 @@ High-level limits match Python:
|
|
|
160
160
|
TypeScript restricts limit values to safe integers, which is stricter than
|
|
161
161
|
Python's unbounded integer type.
|
|
162
162
|
|
|
163
|
+
## Service client changes (v2.152.0)
|
|
164
|
+
|
|
165
|
+
Python v2.152.0 at commit `311b683` introduces options for customizing heading numbering and changes the default pipeline behavior on the wire.
|
|
166
|
+
|
|
167
|
+
- In `ConvertDocumentsOptions`, `pipeline` is now an optional `ProcessingPipeline` and defaults to `None`/`null` on the wire. This allows the server to select its configured default pipeline (normally `standard` unless overridden by an administrator) rather than forcing `standard` from the client.
|
|
168
|
+
- In `HeadingHierarchyOptions` (nested fine-tuning under `pdf_heading_hierarchy_options`), two new options have been introduced: `numbering_keywords` (a mapping of numeral scheme families to non-English keyword arrays) and `numbering_number_words` (extra number words for enumerators).
|
|
169
|
+
|
|
170
|
+
| Python change (v2.152.0) | TypeScript | Option/Wire key | Notes |
|
|
171
|
+
| ------------------------------------------------ | ------------------------------------------------------- | ------------------------ | ----------------------------------------------------------------- |
|
|
172
|
+
| `ConvertDocumentsOptions.pipeline` is optional | `pipeline?: ProcessingPipeline \| null` | `pipeline` | Defaults to `null` so the server can choose its default pipeline. |
|
|
173
|
+
| `HeadingHierarchyOptions.numbering_keywords` | `numbering_keywords?: Record<string, string[]> \| null` | `numbering_keywords` | Mapping for non-English numbering keyword families. |
|
|
174
|
+
| `HeadingHierarchyOptions.numbering_number_words` | `numbering_number_words?: string[] \| null` | `numbering_number_words` | Extra number words for matching enumerators. |
|
|
175
|
+
|
|
176
|
+
References:
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
https://github.com/docling-project/docling/blob/v2.152.0/docling/datamodel/service/options.py#L459
|
|
180
|
+
https://github.com/docling-project/docling/blob/v2.152.0/docling/datamodel/pipeline_options.py#L2201
|
|
181
|
+
https://github.com/docling-project/docling/blob/v2.152.0/docling/datamodel/pipeline_options.py#L2219
|
|
182
|
+
```
|
|
183
|
+
|
|
163
184
|
## Service client changes (v2.151.1)
|
|
164
185
|
|
|
165
186
|
Python v2.151.1 at commit `56d39ff` (including v2.151.0 and v2.150.1) changes
|
package/dist/index.cjs
CHANGED
|
@@ -2182,7 +2182,7 @@ var JSON_STRING_CONFIG_OPTIONS = [
|
|
|
2182
2182
|
"chart_extraction_custom_config"
|
|
2183
2183
|
];
|
|
2184
2184
|
function validateStringEnum(value, allowed, name) {
|
|
2185
|
-
if (value !== void 0 && !allowed.has(value)) {
|
|
2185
|
+
if (value !== void 0 && value !== null && !allowed.has(value)) {
|
|
2186
2186
|
throw new DoclingProtocolError(`${name} contains an unsupported value`);
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|