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
Other
168.02k stars 44.34k forks source link

Major bug with trivial codes difference on generate_image_with_dalle() #3295

Closed wooramkang closed 1 year ago

wooramkang commented 1 year ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

any command with dalle

Current behavior 😯

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

Expected behavior 🤔

image came out without error

this line def generate_image_with_dalle(prompt: str, filename: str) -> str:

should be this def generate_image_with_dalle(prompt: str, filename: str, size :int) -> str:

Your prompt 📝

# Paste your prompt here
NEXT ACTION:  COMMAND = generate_image ARGUMENTS = {'prompt': 'A beautiful landscape with a sunset over the ocean.'}

Your Logs 📒

<insert your logs here>
SYSTEM:  Command generate_image returned: Error: generate_image_with_dalle() takes 2 positional arguments but 3 were given
raczy07 commented 1 year ago

I found that the latest .env file does not return this error (I got this error when using the mater .env

k-boikov commented 1 year ago

generate_image_with_dalle should be fixed in master

Pwuts commented 1 year ago

What @k-boikov said :)