From 6e1b174023803c6ffd3a492fca8d737541877e22 Mon Sep 17 00:00:00 2001 From: better629 Date: Wed, 27 Mar 2024 12:17:50 +0800 Subject: [PATCH] fix merge problem --- examples/llm_hello_world.py | 9 --------- metagpt/team.py | 1 - 2 files changed, 10 deletions(-) diff --git a/examples/llm_hello_world.py b/examples/llm_hello_world.py index 8321b64ca..2a6bf9c05 100644 --- a/examples/llm_hello_world.py +++ b/examples/llm_hello_world.py @@ -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()) diff --git a/metagpt/team.py b/metagpt/team.py index beb1d6186..35f987b57 100644 --- a/metagpt/team.py +++ b/metagpt/team.py @@ -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