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

error with image generation using DALLE #2645

Closed fnefh closed 1 year ago

fnefh commented 1 year ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

Docker

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

No response

Current behavior 😯

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

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>
k-boikov commented 1 year ago

Will be fixed with https://github.com/Significant-Gravitas/Auto-GPT/pull/2491

askivo commented 1 year ago

Will be fixed with #2491

So if the solution listed doesn't work for us we just have to wait for the bug to be fixed?

AdelElo13 commented 1 year ago

in line 79 of image_gen.py replace the def generate_image_with_dalle line to this line: def generate_image_with_dalle(prompt: str, filename: str, size: int, ) -> str:

Pwuts commented 1 year ago

Fixed in #2691