🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add async function for sd tool
stellahsr13010f6c909a
diff --git a/metagpt/tools/functions/schemas/stable_diffusion.yml b/metagpt/tools/functions/schemas/stable_diffusion.ymlindex 119449caa..a93742a1d 100644--- a/metagpt/tools/functions/schemas/stable_diffusion.yml+++ b/metagpt/tools/functions/schemas/stable_diffusion.yml@@ -9,7 +9,6 @@ SDEngine:sd_url:type: strdescription: "URL of the stable diffusion service."-simple_run_t2i:description: "Run the stable diffusion API for multiple prompts, calling the stable diffusion API to generate images."parameters:@@ -22,6 +21,16 @@ SDEngine:description: "Save generated images automatically."required:- prompts+ run_t2i:+ type: async function+ description: "Run the stable diffusion API for multiple prompts, calling the stable diffusion API to generate images."+ parameters:+ properties:+ payloads:+ type: list+ description: "List of payload, each payload is a dictionary of input parameters for the stable diffusion API."+ required:+ - payloadsconstruct_payload:description: "Modify and set the API parameters for image generation."parameters: