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

generate_image_with_dalle() takes 2 positional arguments but 3 were given #2507

Closed amainiero closed 1 year ago

amainiero commented 1 year ago

āš ļø Search for existing issues first āš ļø

Which Operating System are you using?

Windows

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce šŸ•¹

Have a prompt that results in the assistant trying to generate an image

Current behavior šŸ˜Æ

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

Expected behavior šŸ¤”

Assistant successfully generates an image using dalle by providing the correct number of arguments.

Your prompt šŸ“

No response

Your Logs šŸ“’

THOUGHTS: I will use the 'generate_image' command to create an image of a savings plan that can be used in the course materials. I will also use the 'write_to_file' command to save the image to a file that can be used in the course materials. REASONING: Creating an image of a savings plan will help learners to visualize the concept and understand how to save money. Saving the image to a file will allow it to be easily used in the course materials. PLAN:

shashankboosi commented 1 year ago

I think there are PRs open for this fix https://github.com/Significant-Gravitas/Auto-GPT/pull/2491, https://github.com/Significant-Gravitas/Auto-GPT/pull/2501 So should be resolved soon, till then you can use the stable branch. Thanks :)

amainiero commented 1 year ago

New to posting on github so maybe I selected the wrong branch when creating the issue. This occurred on the stable branch,

shashankboosi commented 1 year ago

I checked on the stable branch and looks like the issue is on there as well. Just have to wait for the fix to be merged. Till then, you can use the code changes from the PR and change it locally to get your assistant working. Thanks

namba06530 commented 1 year ago

Just add "size" on image_gen.py def generate_image_with_dalle(prompt: str, filename: str, size) -> str:

kinance commented 1 year ago

Duplicate of #2645

ntindle commented 1 year ago

Duplicate of #2645

froggomad commented 1 year ago

Just add "size" on image_gen.py def generate_image_with_dalle(prompt: str, filename: str, size) -> str:

I also had to add filename: str to generate_image... I'm on stable