Significant-Gravitas / AutoGPT

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.
https://agpt.co
MIT License
166.35k stars 44.03k forks source link

Image Generation Fails with Dalle and how I fixed it #2718

Closed ladyvanburen closed 1 year ago

ladyvanburen commented 1 year ago

Attempted image generation with Dalle and received:

INFO SYSTEM: Command generate_image returned: Error: generate_image_with_dalle() takes 2 positional arguments but 3 were given

I was able to fix this in the image_gen.py script by adding the third missing argument at line 79 as seen below:

def generate_image_with_dalle(prompt: str, filename: str, size: int = 512)

The current commit has only two arguments there when it does indeed specify 3 on line 31.

Hope this helps!

hdkiller commented 1 year ago

2691 will resolve this issue

ladyvanburen commented 1 year ago

Awesome, thank you!

ntindle commented 1 year ago

Fixed in #2691