返回提交历史
Modified
g4f/api/__init__.py
+1
-1
XFEstudio/gpt4free
feat(g4f/api/__init__.py): Update image generation response format
b2b978c9
代码差异
1 个文件
+1
-1
@@ -223,7 +223,7 @@ class Api:
223
223
response_format=config.response_format
224
224
)
225
225
# Convert Image objects to dictionaries
226
response_data = [image.to_dict() for image in response.data]
226
response_data = [{"url": image.url, "b64_json": image.b64_json} for image in response.data]
227
227
return JSONResponse({"data": response_data})
228
228
except Exception as e:
229
229
logging.exception(e)