mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 08:54:24 +01:00
Fix agent remembering do nothing command, use correct google function, disabled image_gen if not configured.
This commit is contained in:
@@ -14,7 +14,8 @@ from autogpt.workspace import path_in_workspace
|
||||
CFG = Config()
|
||||
|
||||
|
||||
@command("generate_image", "Generate Image", '"prompt": "<prompt>"')
|
||||
@command("generate_image", "Generate Image", '"prompt": "<prompt>"',
|
||||
CFG.image_provider)
|
||||
def generate_image(prompt: str) -> str:
|
||||
"""Generate an image from a prompt.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user