update gpt4-v

This commit is contained in:
better629 2024-01-26 15:16:33 +08:00
parent 9cbc34662a
commit 7f8ae1f260
7 changed files with 23 additions and 22 deletions

View file

@ -33,13 +33,11 @@ async def main():
invoice_path = Path(__file__).parent.joinpath("..", "tests", "data", "invoices", "invoice-2.png")
img_base64 = encode_image(invoice_path)
try:
res = await llm.aask(msg="if this is a invoice, just return True else return False",
images=[img_base64])
res = await llm.aask(msg="if this is a invoice, just return True else return False", images=[img_base64])
assert "true" in res.lower()
except Exception as exp:
except Exception:
pass
if __name__ == "__main__":
asyncio.run(main())