Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion AIVision/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,11 @@ 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.strip().lower() == "pass":
try:
logger.debug(f"AI Result is: ==>{result.strip().lower()}<==")
except:
logger.debug("AI Result not returned.")
if result and "pass" in result.strip().lower():
logger.info(f"Verification passed:\n{explanation}")
else:
raise AssertionError(f"Verification failed:\n{explanation}")
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1.1.2, 2026-02-09 -- Improved debug logging
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
Expand Down
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ def license():

def readme():
changes_title = '\n\nVersion history\n----------------\n\n'
formatted_changes = []

with open('README.md') as r:
with open('CHANGES.txt') as ch:
return r.read() + changes_title + ch.read()
with open('CHANGES.txt', 'r') as ch:
for line in ch:
stripped_line = line.strip()
if stripped_line:
formatted_changes.append(f'- {stripped_line}')

with open('README.md', 'r') as r:
return r.read() + changes_title + '\n'.join(formatted_changes) + '\n'


setup(name='robotframework_aivision',
Expand Down
Loading