Skip to content

Commit

Permalink
Patched /tmp/tmpjf3dgkvy/examples/llm_vision.py
Browse files Browse the repository at this point in the history
  • Loading branch information
patched.codes[bot] committed Oct 9, 2024
1 parent 6f1cacc commit c8b7193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/llm_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ async def main():
invoice_path = Path(__file__).parent.joinpath("..", "tests", "data", "invoices", "invoice-2.png")
img_base64 = encode_image(invoice_path)
res = await llm.aask(msg="if this is a invoice, just return True else return False", images=[img_base64])
assert "true" in res.lower()
if "true" not in res.lower():
raise ValueError("Assertion failed: Expected response to contain 'true'.")


if __name__ == "__main__":
Expand Down

0 comments on commit c8b7193

Please sign in to comment.