AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Add missing `size` param to generate_image_with_dalle (#2691)
Andres Caicedo558003704e04
diff --git a/autogpt/commands/image_gen.py b/autogpt/commands/image_gen.pyindex 60cdaec000..962c41fb60 100644--- a/autogpt/commands/image_gen.py+++ b/autogpt/commands/image_gen.py@@ -77,12 +77,13 @@ def generate_image_with_hf(prompt: str, filename: str) -> str:return f"Saved to disk:{filename}"-def generate_image_with_dalle(prompt: str, filename: str) -> str:+def generate_image_with_dalle(prompt: str, filename: str, size: int) -> str:"""Generate an image with DALL-E.Args:prompt (str): The prompt to usefilename (str): The filename to save the image to+ size (int): The size of the imageReturns:str: The filename of the image