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}") 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