From 6c99dd010e868225e0d3eb7890c229891d001842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Malovec?= Date: Mon, 9 Feb 2026 16:36:58 +0100 Subject: [PATCH 1/2] Trim whitespace in result check for verification --- AIVision/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AIVision/library.py b/AIVision/library.py index 0ee1d06..b95864c 100644 --- a/AIVision/library.py +++ b/AIVision/library.py @@ -477,7 +477,7 @@ def add_watermark_to_image( def _assert_result(self, response): result, explanation = self.genai.extract_result_and_explanation_from_response(response) - if result and result.lower() == "pass": + if result and result.strip().lower() == "pass": logger.info(f"Verification passed:\n{explanation}") else: raise AssertionError(f"Verification failed:\n{explanation}") From b6f500daabee1b105d37ee4ae19cff6ef07efc02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Malovec?= Date: Mon, 9 Feb 2026 16:38:05 +0100 Subject: [PATCH 2/2] Update CHANGES.txt for versioning details --- CHANGES.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 0df932e..ee30b39 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ -1.1.0, 2026-02-02 -- Added support for (text) files attachments +1.1.1, 2026-02-09 -- Pass/Fail AI response optimized +1.1.0, 2026-02-08 -- Added support for (text) files attachments 1.0.0, 2026-02-02 -- Release v1.0 0.2.0a1, 2026-02-02 -- Alpha1 version 0.2.0, 2026-01-29 -- AI System Prompt is configurable