update gpt4-v

This commit is contained in:
better629 2024-01-26 15:16:33 +08:00
parent 471871b827
commit 295571fafa
4 changed files with 6 additions and 34 deletions

View file

@ -44,13 +44,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())