fix merge problem

This commit is contained in:
better629 2024-03-27 12:17:50 +08:00
parent 9d3571469c
commit 6e1b174023
2 changed files with 0 additions and 10 deletions

View file

@ -40,15 +40,6 @@ async def main():
if hasattr(llm, "completion"):
logger.info(llm.completion(hello_msg))
# check llm-vision capacity if it supports
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])
assert "true" in res.lower()
except Exception:
pass
if __name__ == "__main__":
asyncio.run(main())

View file

@ -76,7 +76,6 @@ class Team(BaseModel):
def hire(self, roles: list[Role]):
"""Hire roles to cooperate"""
roles[0]
self.env.add_roles(roles)
@property