From 19455ab04ed372b75bba5af40343aa300bb3e9f7 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 21 Aug 2024 15:15:29 +0200 Subject: [PATCH] fix --- backend/apps/images/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index 6cea12278..5244923d1 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -484,7 +484,7 @@ async def image_generations( file_body_path = IMAGE_CACHE_DIR.joinpath(f"{image_filename}.json") with open(file_body_path, "w") as f: - json.dump(data.model_dump(exclude_none=True), f) + json.dump(form_data.model_dump(exclude_none=True), f) log.debug(f"images: {images}") return images