diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a15c1bd..0458191e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Mindee Python Client Library Changelog +## v4.28.1 - 2025-09-03 +### Fixes +* :bug: inference options should default to None + + ## v4.28.0 - 2025-09-02 ### Changes * :sparkles: add list field typed accessors diff --git a/docs/extras/code_samples/default_v2.txt b/docs/extras/code_samples/default_v2.txt index bb0a3cd5..1e3abd18 100644 --- a/docs/extras/code_samples/default_v2.txt +++ b/docs/extras/code_samples/default_v2.txt @@ -11,8 +11,18 @@ mindee_client = ClientV2(api_key) params = InferenceParameters( # ID of the model, required. model_id=model_id, - # If set to `True`, will enable Retrieval-Augmented Generation. - rag=False, + + # Options: set to `True` or `False` to override defaults + + # Enhance extraction accuracy with Retrieval-Augmented Generation. + rag=None, + # Extract the full text content from the document as strings. + raw_text=None, + # Calculate bounding box polygons for all fields. + polygon=None, + # Boost the precision and accuracy of all extractions. + # Calculate confidence scores for all fields. + confidence=None, ) # Load a file from disk diff --git a/mindee/versions.py b/mindee/versions.py index 9a0f4d37..c6f4156e 100644 --- a/mindee/versions.py +++ b/mindee/versions.py @@ -1,6 +1,6 @@ import sys -__version__ = "4.28.0" +__version__ = "4.28.1" PYTHON_VERSION = f"{sys.version_info[0]}.{sys.version_info[1]}" diff --git a/tests/test_client_v2_integration.py b/tests/test_client_v2_integration.py index 82525289..746b85c1 100644 --- a/tests/test_client_v2_integration.py +++ b/tests/test_client_v2_integration.py @@ -118,6 +118,10 @@ def test_parse_file_filled_single_page_must_succeed( params = InferenceParameters( model_id=findoc_model_id, webhook_ids=[], + rag=None, + raw_text=None, + polygon=None, + confidence=None, alias="py_integration_filled_single", )