🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
rm test code
stellaHSR46a7a2c97857
diff --git a/metagpt/tools/sd_engine.py b/metagpt/tools/sd_engine.pyindex c0d6b3d44..13d51353e 100644--- a/metagpt/tools/sd_engine.py+++ b/metagpt/tools/sd_engine.py@@ -110,18 +110,6 @@ class SDEngine:# todo:添加SAM接口调用raise NotImplementedError--# async def run(url, payload, session):-# # Perform the HTTP POST request to the SD API-# async with session.post(url, json=payload, timeout=600) as rsp:-# data = await rsp.read()-#-# rsp_json = json.loads(data)-# imgs = rsp_json['images']-# logger.info(f"callback rsp json is {rsp_json}")-# return imgs--def decode_base64_to_image(img, save_name):image = Image.open(io.BytesIO(base64.b64decode(img.split(",", 1)[0])))pnginfo = PngImagePlugin.PngInfo()