feat: enhance metadata processing and extraction for Efficient nodes with improved prompt handling and conditioning outputs.

This commit is contained in:
Will Miao
2025-06-22 13:21:31 +08:00
parent b198cc2a6e
commit 402318e586
3 changed files with 125 additions and 10 deletions

View File

@@ -996,7 +996,7 @@ class RecipeRoutes:
else:
latest_image = None
if not latest_image:
if latest_image is None:
return web.json_response({"error": "No recent images found to use for recipe. Try generating an image first."}, status=400)
# Convert the image data to bytes - handle tuple and tensor cases