summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to 'g4f')
-rw-r--r--g4f/api/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py
index fadeb0d8..b9591b20 100644
--- a/g4f/api/__init__.py
+++ b/g4f/api/__init__.py
@@ -223,7 +223,7 @@ class Api:
response_format=config.response_format
)
# Convert Image objects to dictionaries
- response_data = [image.to_dict() for image in response.data]
+ response_data = [{"url": image.url, "b64_json": image.b64_json} for image in response.data]
return JSONResponse({"data": response_data})
except Exception as e:
logging.exception(e)