Skip to content

Commit cd12d10

Browse files
authored
🔖 Version 4.28.1 (#358)
1 parent 26500da commit cd12d10

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Mindee Python Client Library Changelog
22

3+
## v4.28.1 - 2025-09-03
4+
### Fixes
5+
* :bug: inference options should default to None
6+
7+
38
## v4.28.0 - 2025-09-02
49
### Changes
510
* :sparkles: add list field typed accessors

docs/extras/code_samples/default_v2.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ mindee_client = ClientV2(api_key)
1111
params = InferenceParameters(
1212
# ID of the model, required.
1313
model_id=model_id,
14-
# If set to `True`, will enable Retrieval-Augmented Generation.
15-
rag=False,
14+
15+
# Options: set to `True` or `False` to override defaults
16+
17+
# Enhance extraction accuracy with Retrieval-Augmented Generation.
18+
rag=None,
19+
# Extract the full text content from the document as strings.
20+
raw_text=None,
21+
# Calculate bounding box polygons for all fields.
22+
polygon=None,
23+
# Boost the precision and accuracy of all extractions.
24+
# Calculate confidence scores for all fields.
25+
confidence=None,
1626
)
1727

1828
# Load a file from disk

mindee/versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
__version__ = "4.28.0"
3+
__version__ = "4.28.1"
44

55
PYTHON_VERSION = f"{sys.version_info[0]}.{sys.version_info[1]}"
66

tests/test_client_v2_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def test_parse_file_filled_single_page_must_succeed(
118118
params = InferenceParameters(
119119
model_id=findoc_model_id,
120120
webhook_ids=[],
121+
rag=None,
122+
raw_text=None,
123+
polygon=None,
124+
confidence=None,
121125
alias="py_integration_filled_single",
122126
)
123127

0 commit comments

Comments
 (0)